public override bool Equals(object? obj) { return obj is ArtifactAction action && Id.Equals(action.Id) && Name == action.Name && Trigger == action.Trigger && Frequency == action.Frequency && RequiredTime == action.RequiredTime && Requirements == action.Requirements && ActionTypeId.Equals(action.ActionTypeId) && EqualityComparer<ActionType>.Default.Equals(ActionType, action.ActionType) && ArtifactId.Equals(action.ArtifactId) && EqualityComparer<Artifact>.Default.Equals(Artifact, action.Artifact) && EqualityComparer<Guid?>.Default.Equals(RollableEffectId, action.RollableEffectId) && EqualityComparer<RollableEffect?>.Default.Equals(RollableEffect, action.RollableEffect) && EqualityComparer<ICollection<Trait>>.Default.Equals(Traits, action.Traits) && EqualityComparer<ICollection<TextBlock>>.Default.Equals(Effects, action.Effects); }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (UserName?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (IPAddress?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (EntityFullName?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (EntityShortName?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (EntityId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Timestamp?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (EntryTypeId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ActionTypeId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (OldValue?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (NewValue?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (PropertyName?.GetHashCode() ?? 0); return(hashCode); }