public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CounterName.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)AssertionType;
         hashCode = (hashCode * 397) ^ Assertion.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CategoryName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (CounterName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (InstanceName?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int result = DeploymentId != null?DeploymentId.GetHashCode() : 0;

            result = 31 * result + (Role != null ? Role.GetHashCode() : 0);
            result = 31 * result + (RoleInstance != null ? RoleInstance.GetHashCode() : 0);
            result = 31 * result + (CounterName != null ? CounterName.GetHashCode() : 0);
            result = 31 * result + (int)(_eventTickCount ^ (_eventTickCount >> 32));
            return(result);
        }
 private int ComputeHashCode()
 {
     unchecked
     {
         int result = (Source != null ? Source.GetHashCode() : 0);
         result = (result * 397) + (Instance != null ? Instance.GetHashCode() : 0);
         result = (result * 397) + (ExtendedData != null ? ExtendedData.GetHashCode() : 0);
         result = (result * 397) + (CounterName != null ? CounterName.GetHashCode() : 0);
         return(result);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         return(((CounterCategory != null ? CounterCategory.GetHashCode() : 0) * 397) ^ (CounterName != null ? CounterName.GetHashCode() : 0));
     }
 }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     return(CategoryName.GetHashCode() ^ CounterName.GetHashCode());
 }