// private methods ... BinaryReader GetReader(OleStream stream) { if (stream == null) { return(null); } byte[] streamData = stream.ReadToEnd(); MemoryStream memoryStream = new MemoryStream(streamData); return(new BinaryReader(memoryStream)); }
private BinaryReader GetReader(OleStream stream) { if (stream == null) { return(null); } byte[] buffer = stream.ReadToEnd(); MemoryStream input = new MemoryStream(buffer); return(new BinaryReader(input)); }