internal static string InvalidOpStreamNonSeekable(string method) { return SR.Format(SR.SqlMisc_InvalidOpStreamNonSeekable, method); } } // SqlResource
private void ThrowIfStreamCannotSeek(string method) { if (!this.m_stream.CanSeek) { throw new NotSupportedException(SQLResource.InvalidOpStreamNonSeekable(method)); } }