Renci.SshNet.ForwardedPortStatus.operator C# (CSharp) Method

operator() public static method

public static operator ( ) : bool
return bool
        public static bool operator ==(ForwardedPortStatus left, ForwardedPortStatus right)
        {
            // check if lhs is null
            if (ReferenceEquals(left, null))
            {
                // check if both lhs and rhs are null
                return (ReferenceEquals(right, null));
            }

            return left.Equals(right);
        }