예제 #1
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));
 }
 public void TearDown()
 {
     SystemUtil.Reset();
 }
예제 #3
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));
 }
예제 #4
0
 public void GetHashCode_works_with_nulls()
 {
     SystemUtil.GetHashCode("test", null);
 }