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