OpenTK.DisplayResolution.operator C# (CSharp) Method

operator() public static method

Compares two instances for equality.
public static operator ( ) : bool
return bool
        public static bool operator ==(DisplayResolution left, DisplayResolution right)
        {
            if (((object)left) == null && ((object)right) == null)
                return true;
            else if ((((object)left) == null && ((object)right) != null) ||
                     (((object)left) != null && ((object)right) == null))
                return false;
            return left.Equals(right);
        }