Exemplo n.º 1
0
 private SubStateB SubStateBReducer(SubStateB previousState, object action)
 {
     if (action is ActionChangeSubstateB b)
     {
         return(new SubStateB(b.newVal));
     }
     return(previousState);
 }
Exemplo n.º 2
0
 public MyAppState1(SubStateA newA, SubStateB newB, SubStateC newC)
 {
     substateA = newA;
     substateB = newB;
     substateC = newC;
 }
Exemplo n.º 3
0
 public MyAppState1(SubStateA newA, SubStateB newB)
 {
     substateA = newA; substateB = newB;
 }