Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = 397 ^ Shape.GetHashCode();
         hashCode = (hashCode * 397) ^ Stride.GetHashCode();
         hashCode = (hashCode * 397) ^ Offset.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer that is the hash code for this instance.</returns>
 public override int GetHashCode()
 {
     return(HashHelper.Combine(Stride.GetHashCode(), HashHelper.Array(Elements), InstanceStepRate.GetHashCode()));
 }
Esempio n. 3
0
 //ncrunch: no coverage start
 public override int GetHashCode()
 {
     return(Elements.GetHashCode() ^ Stride.GetHashCode());
 }         //ncrunch: no coverage end