Esempio n. 1
0
                public Digit(TChild one, Lineage lineage)
                    : base(one.Measure, lineage, 1, ExampleChild.Nesting + 1)
                {
#if ASSERTS
                    one.AssertNotNull();
                    one.IsFragment.AssertFalse();
#endif
                    First = one;
                    Size  = 1;
                }
Esempio n. 2
0
                public Digit(TChild one, TChild two, Lineage lineage)
                    : base(one.Measure + two.Measure, lineage, 2, ExampleChild.Nesting + 1)
                {
#if ASSERTS
                    one.AssertNotNull();
                    two.AssertNotNull();
                    new[] { two.IsFragment }.Any(x => x).AssertFalse();                  //one can be a fragment as a hack used as part of RemoveAt
#endif
                    First  = one;
                    Second = two;
                    Size   = 2;
                }