static void Init(ref SsOut1 outer) { outer.ii = 100; outer.ss = nameof(outer); outer.ll = new List <int>() { 100, 200, 300 }; Init(ref outer.innerSs); outer.innerCc = new CcIn1(); Init(outer.innerCc); }
static void NewAndInit(out SsOut1 oo) { oo = new SsOut1(); Init(ref oo); }