L
laurent.sass
Hello,
I have made this code in a class
private static Type[] Etats = new Type[]
{
typeof(Transition1),
typeof(Transition2),
typeof(Transition3)
}
i with with an indice of a table, calling a static method.
for helping me, all my transactions are inherited about an Transaction
object.
I'll wish like to do this :
Transition myTransitionGenerique;
(myTransitionGenerique as Etats[Idx]).MaProprieteStatique();
Do you know if it is possible ?
I'm using this for making an State Machin without create all transition
object.
Thanks
I have made this code in a class
private static Type[] Etats = new Type[]
{
typeof(Transition1),
typeof(Transition2),
typeof(Transition3)
}
i with with an indice of a table, calling a static method.
for helping me, all my transactions are inherited about an Transaction
object.
I'll wish like to do this :
Transition myTransitionGenerique;
(myTransitionGenerique as Etats[Idx]).MaProprieteStatique();
Do you know if it is possible ?
I'm using this for making an State Machin without create all transition
object.
Thanks