private static OutputDevice OpenStackedDevice(Stack <OutputDevice> stack, OutputDevice newOut) { OutputDevice origOut = stack.Peek(); OutputDevice outDevice = new StackedDevice(origOut, newOut); stack.Push(outDevice); return(outDevice); }
private static OutputDevice OpenStackedDevice(Stack<OutputDevice> stack, OutputDevice newOut) { OutputDevice origOut = stack.Peek(); OutputDevice outDevice = new StackedDevice(origOut, newOut); stack.Push(outDevice); return outDevice; }