public override int GetHashCode() { unchecked { int hashCode = Sbyte.GetHashCode(); hashCode = (hashCode * 397) ^ Short.GetHashCode(); hashCode = (hashCode * 397) ^ Int; hashCode = (hashCode * 397) ^ Long.GetHashCode(); hashCode = (hashCode * 397) ^ Byte.GetHashCode(); hashCode = (hashCode * 397) ^ UShort.GetHashCode(); hashCode = (hashCode * 397) ^ (int)UInt; hashCode = (hashCode * 397) ^ ULong.GetHashCode(); hashCode = (hashCode * 397) ^ Char.GetHashCode(); hashCode = (hashCode * 397) ^ Float.GetHashCode(); hashCode = (hashCode * 397) ^ Double.GetHashCode(); hashCode = (hashCode * 397) ^ Decimal.GetHashCode(); hashCode = (hashCode * 397) ^ Boolean.GetHashCode(); hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DateTime.GetHashCode(); hashCode = (hashCode * 397) ^ (Exception != null ? Exception.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)Enum; hashCode = (hashCode * 397) ^ Struct.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = Sbyte.GetHashCode(); hashCode = (hashCode * 397) ^ Short.GetHashCode(); hashCode = (hashCode * 397) ^ Int; hashCode = (hashCode * 397) ^ Long.GetHashCode(); hashCode = (hashCode * 397) ^ Byte.GetHashCode(); hashCode = (hashCode * 397) ^ UShort.GetHashCode(); hashCode = (hashCode * 397) ^ (int)UInt; hashCode = (hashCode * 397) ^ ULong.GetHashCode(); hashCode = (hashCode * 397) ^ Char.GetHashCode(); hashCode = (hashCode * 397) ^ Float.GetHashCode(); hashCode = (hashCode * 397) ^ Double.GetHashCode(); hashCode = (hashCode * 397) ^ Decimal.GetHashCode(); hashCode = (hashCode * 397) ^ Boolean.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int result = _int1; result = (result * 397) ^ Bool.GetHashCode(); result = (result * 397) ^ (NullableBool.HasValue ? NullableBool.Value.GetHashCode() : 0); result = (result * 397) ^ Int; result = (result * 397) ^ Uint.GetHashCode(); result = (result * 397) ^ (NullableInt.HasValue ? NullableInt.Value : 0); result = (result * 397) ^ (NullableUint.HasValue ? NullableUint.Value.GetHashCode() : 0); result = (result * 397) ^ Byte.GetHashCode(); result = (result * 397) ^ Sbyte.GetHashCode(); result = (result * 397) ^ (NullableByte.HasValue ? NullableByte.Value.GetHashCode() : 0); result = (result * 397) ^ (NullableSbyte.HasValue ? NullableSbyte.Value.GetHashCode() : 0); result = (result * 397) ^ Short.GetHashCode(); result = (result * 397) ^ Ushort.GetHashCode(); result = (result * 397) ^ (NullableShort.HasValue ? NullableShort.Value.GetHashCode() : 0); result = (result * 397) ^ (NullableUshort.HasValue ? NullableUshort.Value.GetHashCode() : 0); result = (result * 397) ^ Long.GetHashCode(); result = (result * 397) ^ Ulong.GetHashCode(); result = (result * 397) ^ (NullableLong.HasValue ? NullableLong.Value.GetHashCode() : 0); result = (result * 397) ^ (NullableUlong.HasValue ? NullableUlong.Value.GetHashCode() : 0); result = (result * 397) ^ Char.GetHashCode(); result = (result * 397) ^ (NullableChar.HasValue ? NullableChar.Value.GetHashCode() : 0); result = (result * 397) ^ Float.GetHashCode(); result = (result * 397) ^ (NullableFloat.HasValue ? NullableFloat.Value.GetHashCode() : 0); result = (result * 397) ^ Double.GetHashCode(); result = (result * 397) ^ (NullableDouble.HasValue ? NullableDouble.Value.GetHashCode() : 0); result = (result * 397) ^ Decimal.GetHashCode(); result = (result * 397) ^ (NullableDecimal.HasValue ? NullableDecimal.Value.GetHashCode() : 0); result = (result * 397) ^ (String != null ? String.GetHashCode() : 0); result = (result * 397) ^ (Object != null ? Object.GetHashCode() : 0); result = (result * 397) ^ TimeSpan.GetHashCode(); result = (result * 397) ^ (NullableTimeSpan.HasValue ? NullableTimeSpan.Value.GetHashCode() : 0); result = (result * 397) ^ DateTime.GetHashCode(); result = (result * 397) ^ (NullableDateTime.HasValue ? NullableDateTime.Value.GetHashCode() : 0); return(result); } }