public void Print(string value) { if (_last.GetType() != typeof(OutputChainBuffer)) { AddBuffer(); } _last.Print(value); }
public void AddBufferBefore(int bufferInvIndex, string value) { OutputChainBuffer bufReference = Last; for (int i = 0; i < bufferInvIndex; i++) { bufReference = bufReference.Prev; } var bufInsert = new OutputChainBuffer(sandbox, bufReference.Prev); if (bufInsert.Next == First) { First = bufInsert; } bufInsert.Print(value); }