/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns>A hash code for the current <see cref="ORMEntity"/></returns> public override int GetHashCode() { var hashCode = new HashCode(); for (int i = 0; i < MutableTableScheme.Count; i++) { hashCode.Add(this[MutableTableScheme[i]]?.GetHashCode()); } hashCode.Add(IsDirty.GetHashCode()); hashCode.Add(PrimaryKey.GetHashCode()); return(hashCode.ToHashCode()); }
public override int GetHashCode() { var hashCode = 310520135; hashCode = hashCode * -1521134295 + IsDirty.GetHashCode(); hashCode = hashCode * -1521134295 + IsOpen.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(WorkItemName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(WorkItemID); hashCode = hashCode * -1521134295 + ((ISupportsFocus)this).IsFocused.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <IWorkItem> .Default.GetHashCode(Parent); hashCode = hashCode * -1521134295 + IsModal.GetHashCode(); return(hashCode); }