System.Collections.Generic.ICollection.Contains(TStateEnum)

Here are the examples of the csharp api System.Collections.Generic.ICollection.Contains(TStateEnum) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : FiniteStateMachine.cs
with MIT License
from spatialos

public bool IsValidTransition(TStateEnum nextState)
        {
            return transitions[CurrentState].Contains(nextState);
        }