Exemple #1
0
 /// <summary>
 ///     Serves as the default hash function.
 /// </summary>
 /// <returns> A hash code for the current object. </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = StoreType.GetHashCode();
         hashCode = (hashCode * 397) ^ ModelType.GetHashCode();
         hashCode = (hashCode * 397) ^ (Mapping?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Property?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Index;
         return(hashCode);
     }
 }
 /// <summary>重写获取HashCode方法
 /// </summary>
 public override int GetHashCode()
 {
     return(StringComparer.InvariantCulture.GetHashCode(FileId) & StoreType.GetHashCode() & Patch.GetHashCode());
 }
 public override int GetHashCode()
 {
     return(Slot.GetHashCode() ^ Type.GetHashCode());
 }