Accord.Video.DirectShow.VideoCapabilities.operator C# (CSharp) Method

operator() public static method

Equality operator.
public static operator ( ) : bool
return bool
        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);
        }