Пример #1
0
 private SubStateC SubStateCReducer(SubStateC previousState, object action)
 {
     if (action is ActionChangeSubstateC c)
     {
         return(new SubStateC(c.newVal));
     }
     return(previousState);
 }
Пример #2
0
 public MyAppState1(SubStateA newA, SubStateB newB, SubStateC newC)
 {
     substateA = newA;
     substateB = newB;
     substateC = newC;
 }