Ejemplo n.º 1
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="Tuple{T1,T2,T3,T4,T5,T6,T7}" />.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     return(SystemUtil.GetHashCode(Item1, Item2, Item3, Item4, Item5, Item6, Item7));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="Triple{T1,T2,T3}"/>.
 /// </returns>
 public override int GetHashCode()
 {
     return(SystemUtil.GetHashCode(Item1, Item2, Item3));
 }
Ejemplo n.º 3
0
 public void GetHashCode_works_with_nulls()
 {
     SystemUtil.GetHashCode("test", null);
 }