public override int GetHashCode() { unchecked { var hashCode = (SampleString != null ? SampleString.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SampleInt8.GetHashCode(); hashCode = (hashCode * 397) ^ SampleInt16.GetHashCode(); hashCode = (hashCode * 397) ^ SampleInt32; hashCode = (hashCode * 397) ^ SampleInt64.GetHashCode(); hashCode = (hashCode * 397) ^ SampleUInt8.GetHashCode(); hashCode = (hashCode * 397) ^ SampleUInt16.GetHashCode(); hashCode = (hashCode * 397) ^ (int)SampleUInt32; hashCode = (hashCode * 397) ^ SampleUInt64.GetHashCode(); hashCode = (hashCode * 397) ^ SampleFloat.GetHashCode(); hashCode = (hashCode * 397) ^ SampleDouble.GetHashCode(); hashCode = (hashCode * 397) ^ SampleDecimal.GetHashCode(); hashCode = (hashCode * 397) ^ SampleBool.GetHashCode(); hashCode = (hashCode * 397) ^ SampleDateTime.GetHashCode(); hashCode = (hashCode * 397) ^ SampleTimeSpan.GetHashCode(); hashCode = (hashCode * 397) ^ (int)SampleEnum; hashCode = (hashCode * 397) ^ (int)SampleFlagEnum; hashCode = (hashCode * 397) ^ SampleNullableUInt32.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Type != 0) { hash ^= Type.GetHashCode(); } if (ObjectName.Length != 0) { hash ^= ObjectName.GetHashCode(); } if (SampleString.Length != 0) { hash ^= SampleString.GetHashCode(); } if (SampleInt != 0) { hash ^= SampleInt.GetHashCode(); } if (SampleFloat != 0F) { hash ^= SampleFloat.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (SampleString.Length != 0) { hash ^= SampleString.GetHashCode(); } hash ^= details_.GetHashCode(); return(hash); }