public override int GetHashCode() { unchecked { var hashCode = IntPrimitive; hashCode = (hashCode * 397) ^ IntBoxed.GetHashCode(); hashCode = (hashCode * 397) ^ DoublePrimitive.GetHashCode(); hashCode = (hashCode * 397) ^ DoubleBoxed.GetHashCode(); hashCode = (hashCode * 397) ^ BoolPrimitive.GetHashCode(); hashCode = (hashCode * 397) ^ BoolBoxed.GetHashCode(); return hashCode; } }
public override int GetHashCode() { unchecked { var hashCode = TheString != null ? TheString.GetHashCode() : 0; hashCode = (hashCode * 397) ^ BoolBoxed.GetHashCode(); hashCode = (hashCode * 397) ^ IntPrimitive.GetHashCode(); hashCode = (hashCode * 397) ^ LongPrimitive; hashCode = (hashCode * 397) ^ DoublePrimitive.GetHashCode(); hashCode = (hashCode * 397) ^ (int) EnumValue; return hashCode; } }