Accord.Video.DirectShow.VideoCapabilities.operator C# (CSharp) 메소드

operator() 공개 정적인 메소드

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