private void ThrowIfStreamCannotWrite(string method) { if (!this.m_stream.CanWrite) { throw new NotSupportedException(SQLResource.InvalidOpStreamNonWritable(method)); } }