public static bool operator ==(VideoCapabilities a, VideoCapabilities b)
{
// if both are null, or both are same instance, return true.
if (object.ReferenceEquals(a, b))
{
return true;
}
// if one is null, but not both, return false.
if (((object)a == null) || ((object)b == null))
{
return false;
}
return a.Equals(b);
}