static object TranscodedOutputPort(object binaryport, object transcoder) { Stream s = RequiresNotNull <Stream>(binaryport); Transcoder tc = RequiresNotNull <Transcoder>(transcoder); if (s.CanWrite) { TextWriter w = new TranscodedWriter(s, tc); return(w); } return(FALSE); }
static object TranscodedOutputPort(object binaryport, object transcoder) { Stream s = RequiresNotNull<Stream>(binaryport); Transcoder tc = RequiresNotNull<Transcoder>(transcoder); if (s.CanWrite) { TextWriter w = new TranscodedWriter(s, tc); return w; } return FALSE; }