internal static string InvalidOpStreamNonWritable(string method) { return SR.Format(SR.SqlMisc_InvalidOpStreamNonWritable, method); }
private void ThrowIfStreamCannotWrite(string method) { if (!this.m_stream.CanWrite) { throw new NotSupportedException(SQLResource.InvalidOpStreamNonWritable(method)); } }