private bool Equals(IDEEvent other) { return(string.Equals(Id, other.Id) && string.Equals(IDESessionUUID, other.IDESessionUUID) && string.Equals(KaVEVersion, other.KaVEVersion) && TriggeredAt.Equals(other.TriggeredAt) && TriggeredBy == other.TriggeredBy && Duration.Equals(other.Duration) && Equals(ActiveWindow, other.ActiveWindow) && Equals(ActiveDocument, other.ActiveDocument)); }
public override int GetHashCode() { unchecked { var hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (IDESessionUUID != null ? IDESessionUUID.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (KaVEVersion != null ? KaVEVersion.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TriggeredAt.GetHashCode(); hashCode = (hashCode * 397) ^ (int)TriggeredBy; hashCode = (hashCode * 397) ^ Duration.GetHashCode(); hashCode = (hashCode * 397) ^ (ActiveWindow != null ? ActiveWindow.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ActiveDocument != null ? ActiveDocument.GetHashCode() : 0); return(hashCode); } }