Beispiel #1
0
        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);
        }
Beispiel #2
0
 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;
 }