Be.Windows.Forms.DynamicFileByteProvider.DynamicFileByteProvider C# (CSharp) Method

DynamicFileByteProvider() public method

Constructs a new DynamicFileByteProvider instance.
The stream must supported seek operations.
public DynamicFileByteProvider ( Stream stream ) : System
stream Stream the stream containing the data.
return System
        public DynamicFileByteProvider(Stream stream)
        {
            if (stream == null)
                throw new ArgumentNullException("stream");
            if (!stream.CanSeek)
                throw new ArgumentException("stream must supported seek operations(CanSeek)");

            _stream = stream;
            _readOnly = !stream.CanWrite;
            ReInitialize();
        }

Same methods

DynamicFileByteProvider::DynamicFileByteProvider ( string fileName ) : System
DynamicFileByteProvider::DynamicFileByteProvider ( string fileName, bool readOnly ) : System