public TransitionState GetSingleTransition(string sInputSymbol) { if (MatchingStateMap.Contains(sInputSymbol) == true) { Hashset set = MatchingStateMap[sInputSymbol] as Hashset; return((TransitionState)set[0]); } return(null); }
public TransitionState[] GetTransitions(string sInputSymbol) { if (MatchingStateMap.Contains(sInputSymbol) == true) { Hashset set = MatchingStateMap[sInputSymbol] as Hashset; return((TransitionState[])set.ToArray(typeof(TransitionState))); } return(null); }