/// <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)); }
/// <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)); }