public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 23 + (LocalAddress == null ? 0 : LocalAddress.GetHashCode()); hash = hash * 23 + (RemoteAddress == null ? 0 : RemoteAddress.GetHashCode()); return hash; } } }