Example #1
1
 public ListStack(NonListStackData data, ListStack formerStack)
     : base(formerStack.OutStream)
 {
     _data = new NonListStackData[formerStack._data.Length + 1];
     _data[0] = data;
     formerStack._data.CopyTo(_data, 1);
 }
Example #2
0
 ListStack(NonListStackData[] data, ListStack formerStack)
     : base(formerStack.OutStream)
 {
     _data = new NonListStackData[data.Length + formerStack._data.Length];
     data.CopyTo(_data, 0);
     formerStack._data.CopyTo(_data, data.Length);
 }
Example #3
0
 internal override StackData PushOnto(ListStack formerStack) => formerStack;
Example #4
0
 internal override StackData PushOnto(ListStack formerStack)
     => new ListStack(this, formerStack);
Example #5
0
 internal virtual StackData PushOnto(ListStack formerStack)
 {
     NotImplementedMethod(formerStack);
     return null;
 }