Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (AssetId != null ? AssetId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OriginalSymbol != null ? OriginalSymbol.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CryptoType.GetHashCode();
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode() => OriginalSymbol.GetHashCode();
 public bool Equals(ITypeMemberSource other) => OriginalSymbol.Equals(other.OriginalSymbol, SymbolEqualityComparer.Default);