protected bool Equals(IeTransitionEvent other) { return(base.Equals(other) && string.Equals(FromState, other.FromState) && FromStateId.GetValueOrDefault() == other.FromStateId.GetValueOrDefault() && string.Equals(ToState, other.ToState) && ToStateId.GetValueOrDefault() == other.ToStateId.GetValueOrDefault() && WorkflowHelper.CollectionEquals(PermissionGroups, other.PermissionGroups) && SkipPermissionGroups.GetValueOrDefault() == other.SkipPermissionGroups.GetValueOrDefault() && Equals(PortPair, other.PortPair)); }
public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (FromState != null ? FromState.GetHashCode() : 0); hashCode = (hashCode * 397) ^ FromStateId.GetHashCode(); hashCode = (hashCode * 397) ^ (ToState != null ? ToState.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ToStateId.GetHashCode(); hashCode = (hashCode * 397) ^ (PermissionGroups != null ? PermissionGroups.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SkipPermissionGroups.GetHashCode(); return(hashCode); } }