Example #1
0
        public override bool Equals(object obj)
        {
            var item = obj as Connection;

            if (item == null)
            {
                return(false);
            }

            return(OwnerPid.Equals(item.OwnerPid) &&
                   ExternalPort.Equals(item.ExternalPort) &&
                   LocalPort.Equals(item.LocalPort) &&
                   ExternalAddress.Equals(item.ExternalAddress) &&
                   LocalAddress.Equals(item.LocalAddress) &&
                   Protocol.Equals(item.Protocol) &&
                   State.Equals(item.State));
        }