public bool Contains(EventState toState) { if (toState.Equals(EventState.Normal) && IsToNormal) { return(true); } if (toState.Equals(EventState.Fault) && IsToFault) { return(true); } // All other event states are considered off-normal return(IsToOffnormal); }