protected void InitOutput(Stream output) { // setups Output and OutputStream _textSink = new StreamWriter(_streamSink = output ?? Stream.Null); IsOutputBuffered = false; }
/// <summary> /// Create default context with no output. /// </summary> public static Context CreateEmpty() { var ctx = new Context(); ctx.InitOutput(null); return(ctx); }