Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((location != null ? location.GetHashCode() : 0) * 397) ^ id.GetHashCode());
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = File?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (FileHashCallback?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ CancellationToken.GetHashCode();
         return(hashCode);
     }
 }
Пример #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (File != null ? File.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FileHashCallback != null ? FileHashCallback.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CancellationToken.GetHashCode();
         return(hashCode);
     }
 }