Pchp.Core.Context.InitOutput C# (CSharp) Method

InitOutput() protected method

Initialize output of this context. To be used by the context constructor.
protected InitOutput ( Stream output ) : void
output Stream
return void
        protected void InitOutput(Stream output)
        {
            // setups Output and OutputStream
            _textSink = new StreamWriter(_streamSink = output ?? Stream.Null);
            IsOutputBuffered = false;
        }

Usage Example

Esempio n. 1
0
        /// <summary>
        /// Create default context with no output.
        /// </summary>
        public static Context CreateEmpty()
        {
            var ctx = new Context();

            ctx.InitOutput(null);

            return(ctx);
        }
All Usage Examples Of Pchp.Core.Context::InitOutput