public bool Includes(TState state)
 {
     return(UnderlyingState.Equals(state) || _substates.Any(s => s.Includes(state)));
 }
 public bool IsIncludedIn(TState state)
 {
     return
         (UnderlyingState.Equals(state) ||
          Superstate != null && Superstate.IsIncludedIn(state));
 }
Beispiel #3
0
 /// <summary>
 /// Passes through to the value's ToString.
 /// </summary>
 public override string ToString()
 {
     return(UnderlyingState?.ToString() ?? "<null>");
 }