public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ Enabled.GetHashCode(); hashCode = (hashCode * 397) ^ Removed.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { var hashCode = ProducerRegistrationNumber.GetHashCode() ^ ComplianceYear.GetHashCode() ^ Scheme.ApprovalNumber.GetHashCode() ^ Removed.GetHashCode(); if (RemovedDate.HasValue) { hashCode ^= RemovedDate.Value.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Version != 0UL) { hash ^= Version.GetHashCode(); } if (eventCase_ == EventOneofCase.Added) { hash ^= Added.GetHashCode(); } if (eventCase_ == EventOneofCase.Decremented) { hash ^= Decremented.GetHashCode(); } if (eventCase_ == EventOneofCase.Incremented) { hash ^= Incremented.GetHashCode(); } if (eventCase_ == EventOneofCase.NameChanged) { hash ^= NameChanged.GetHashCode(); } if (eventCase_ == EventOneofCase.Removed) { hash ^= Removed.GetHashCode(); } hash ^= (int)eventCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }