コード例 #1
0
        static public bool CopyTo(this Nook item, Nook dst_nook)
        {
            bool result = false;

            item.Read(delegate(Stream src_stream) {
                result = dst_nook.WriteFromStream(src_stream);
            });

            return(result);
        }
コード例 #2
0
        static public bool TryReadText(this Nook item, out string text)
        {
            string temp   = null;
            bool   result = item.Read(delegate(Stream stream) {
                temp = stream.ReadText();
            });

            text = temp;
            return(result);
        }
コード例 #3
0
 public override bool Read(Process <Stream> process)
 {
     return(nook.Read(process));
 }
コード例 #4
0
 static public bool ReadIntoStream(this Nook item, Stream dst_stream)
 {
     return(item.Read(delegate(Stream src_stream) {
         dst_stream.WriteStream(src_stream);
     }));
 }