private SubStateA SubStateAReducer(SubStateA previousState, object action)
 {
     if (action is ActionChangeSubstateA a)
     {
         return(new SubStateA(a.newVal));
     }
     return(previousState);
 }
 public MyAppState1(SubStateA newA, SubStateB newB, SubStateC newC)
 {
     substateA = newA;
     substateB = newB;
     substateC = newC;
 }
Exemple #3
0
 public MyAppState1(SubStateA newA, SubStateB newB)
 {
     substateA = newA; substateB = newB;
 }