コード例 #1
0
ファイル: SpoolCommand.cs プロジェクト: meikeric/dshell
        private static OutputDevice OpenStackedDevice(Stack <OutputDevice> stack, OutputDevice newOut)
        {
            OutputDevice origOut   = stack.Peek();
            OutputDevice outDevice = new StackedDevice(origOut, newOut);

            stack.Push(outDevice);
            return(outDevice);
        }
コード例 #2
0
ファイル: SpoolCommand.cs プロジェクト: deveel/dshell
 private static OutputDevice OpenStackedDevice(Stack<OutputDevice> stack, OutputDevice newOut)
 {
     OutputDevice origOut = stack.Peek();
     OutputDevice outDevice = new StackedDevice(origOut, newOut);
     stack.Push(outDevice);
     return outDevice;
 }