Exemple #1
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked {
         var result = Success.GetHashCode();
         result = (result * 397) ^ Error.GetHashCode();
         result = (result * 397) ^ NumPods;
         result = (result * 397) ^ (DataTypes != null ? DataTypes.GetHashCode() : 0);
         result = (result * 397) ^ (TimedOut != null ? TimedOut.GetHashCode() : 0);
         result = (result * 397) ^ Timing.GetHashCode();
         result = (result * 397) ^ ParseTiming.GetHashCode();
         result = (result * 397) ^ ParseTimedOut.GetHashCode();
         result = (result * 397) ^ (Recalculate != null ? Recalculate.GetHashCode() : 0);
         result = (result * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         result = (result * 397) ^ (Pods != null ? Pods.GetHashCode() : 0);
         return(result);
     }
 }
Exemple #2
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var result = Success.GetHashCode();
         result = (result * 397) ^ Error.GetHashCode();
         result = (result * 397) ^ NumPods;
         result = (result * 397) ^ (!DataTypes.IsNull() ? DataTypes.GetHashCode() : 0);
         result = (result * 397) ^ (!TimedOut.IsNull() ? TimedOut.GetHashCode() : 0);
         result = (result * 397) ^ Timing.GetHashCode();
         result = (result * 397) ^ ParseTiming.GetHashCode();
         result = (result * 397) ^ ParseTimedOut.GetHashCode();
         result = (result * 397) ^ (!Recalculate.IsNull() ? Recalculate.GetHashCode() : 0);
         result = (result * 397) ^ (!Version.IsNull() ? Version.GetHashCode() : 0);
         result = (result * 397) ^ (!Pods.IsNull() ? Pods.GetHashCode() : 0);
         return(result);
     }
 }