Now the user needs to remember what name the transitions and states are described inside the file.
And work with them happens like this:
stateMachine.GetState("State1");
And I would like so
stateMachine.State1;
I must say that dynamic will not work, because you still need to remember the name.
Some kind of code generation is probably needed here, but so far I have not found a solution.
Now the user needs to remember what name the transitions and states are described inside the file. And work with them happens like this:
And I would like so
I must say that dynamic will not work, because you still need to remember the name. Some kind of code generation is probably needed here, but so far I have not found a solution.