Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = CompletedWorkItemCount.GetHashCode();
         hashCode = (hashCode * 397) ^ LockContentionCount.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalOperations.GetHashCode();
         return(hashCode);
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Gen0Collections;
         hashCode = (hashCode * 397) ^ Gen1Collections;
         hashCode = (hashCode * 397) ^ Gen2Collections;
         hashCode = (hashCode * 397) ^ AllocatedBytes.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalOperations.GetHashCode();
         return(hashCode);
     }
 }