コード例 #1
0
 public void Print(string value)
 {
     if (_last.GetType() != typeof(OutputChainBuffer))
     {
         AddBuffer();
     }
     _last.Print(value);
 }
コード例 #2
0
        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);
        }