コード例 #1
0
        // private methods ...
        BinaryReader GetReader(OleStream stream)
        {
            if (stream == null)
            {
                return(null);
            }
            byte[]       streamData   = stream.ReadToEnd();
            MemoryStream memoryStream = new MemoryStream(streamData);

            return(new BinaryReader(memoryStream));
        }
コード例 #2
0
        private BinaryReader GetReader(OleStream stream)
        {
            if (stream == null)
            {
                return(null);
            }
            byte[]       buffer = stream.ReadToEnd();
            MemoryStream input  = new MemoryStream(buffer);

            return(new BinaryReader(input));
        }