public override int GetHashCode() { unchecked { int hashCode = Identifier; hashCode = (hashCode * 397) ^ IsKnown.GetHashCode(); hashCode = (hashCode * 397) ^ Size; return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (SessionId != 0) { hash ^= SessionId.GetHashCode(); } if (IsKnown != false) { hash ^= IsKnown.GetHashCode(); } if (UniqueId != 0) { hash ^= UniqueId.GetHashCode(); } if (Endpoint.Length != 0) { hash ^= Endpoint.GetHashCode(); } return(hash); }