예제 #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);
     }
 }