public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (FieldsCollection != null ? FieldsCollection.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ UpdateAllOccurrences.GetHashCode(); hashCode = (hashCode * 397) ^ CreateBookmark.GetHashCode(); hashCode = (hashCode * 397) ^ (ServiceHost != null ? ServiceHost.GetHashCode() : 0); return(hashCode); } }
public bool Equals(DsfDotNetMultiAssignActivity other) { if (FieldsCollection.Count != other.FieldsCollection.Count) { return(false); } var eq = base.Equals(other); for (int i = 0; i < FieldsCollection.Count; i++) { eq &= FieldsCollection[i].Equals(other.FieldsCollection[i]); } eq &= UpdateAllOccurrences.Equals(other.UpdateAllOccurrences); eq &= CreateBookmark.Equals(other.CreateBookmark); if (!(ServiceHost is null)) { eq &= ServiceHost.Equals(other.ServiceHost); } return(eq); }