Пример #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Data != null ? Data.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ X.GetHashCode();
         hashCode = (hashCode * 397) ^ Y.GetHashCode();
         hashCode = (hashCode * 397) ^ Z.GetHashCode();
         return(hashCode);
     }
 }
Пример #2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (BlockState != null ? BlockState.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Data != null ? Data.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Metadata;
         return(hashCode);
     }
 }
Пример #3
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Name != null ? Name.GetHashCode() : 0) * 397) ^ (Props != null ? Props.GetHashCode() : 0));
     }
 }