Renci.SshNet.ForwardedPortStatus.Equals C# (CSharp) 메소드

Equals() 공개 메소드

public Equals ( object other ) : bool
other object
리턴 bool
        public override bool Equals(object other)
        {
            if (ReferenceEquals(other, null))
                return false;

            if (ReferenceEquals(this, other))
                return true;

            var forwardedPortStatus = other as ForwardedPortStatus;
            if (forwardedPortStatus == null)
                return false;

            return forwardedPortStatus._value == _value;
        }