System.IO.FileStream.AssertCanRead C# (CSharp) Method

AssertCanRead() private method

private AssertCanRead ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void
        private void AssertCanRead(byte[] buffer, int offset, int count)
        {
            Debug.Assert(!_fileHandle.IsClosed, "!_fileHandle.IsClosed");
            Debug.Assert(CanRead, "CanRead");
            Debug.Assert(buffer != null, "buffer != null");
            Debug.Assert(_writePos == 0, "_writePos == 0");
            Debug.Assert(offset >= 0, "offset is negative");
            Debug.Assert(count >= 0, "count is negative");
        }