Exemple #1
0
 /// <summary>
 /// Serves as a hash function for a <see cref="Row"/> object.
 /// </summary>
 /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a
 /// hash table.</returns>
 public override int GetHashCode()
 {
     return(Height.GetHashCode() ^ UnitType.GetHashCode());
 }
Exemple #2
0
 /// <summary>
 /// Serves as a hash function for a <see cref="Column"/> object.
 /// </summary>
 /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a
 /// hash table.</returns>
 public override int GetHashCode()
 {
     return(Width.GetHashCode() ^ UnitType.GetHashCode());
 }