示例#1
0
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     // TODO: write your implementation of GetHashCode() here
     return(ObjectExtansions.CreateHashCode(this.value));
 }
示例#2
0
 /// <summary>
 /// Gets a hash code.
 /// </summary>
 /// <returns>A hash code calculated from the pair.</returns>
 public override int GetHashCode()
 {
     return(ObjectExtansions.CreateHashCode(this.Previous, this.Current));
 }