public override int GetHashCode() { int hash = 1; if (FloatData != 0F) { hash ^= FloatData.GetHashCode(); } if (DoubleData != 0D) { hash ^= DoubleData.GetHashCode(); } if (IntData != 0) { hash ^= IntData.GetHashCode(); } if (LongData != 0L) { hash ^= LongData.GetHashCode(); } if (BoolData != false) { hash ^= BoolData.GetHashCode(); } if (StringData.Length != 0) { hash ^= StringData.GetHashCode(); } hash ^= list_.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { var hashCode = ByteData != null?ByteData.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (StringData != null ? StringData.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Encoding != null ? Encoding.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = GuidData.GetHashCode(); hashCode = (hashCode * 397) ^ IntData; hashCode = (hashCode * 397) ^ (StringData != null ? StringData.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DateData.GetHashCode(); return(hashCode); } }