/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { this.Reader?.Dispose(); this.Reader = null; }
/// <summary> /// Initializes a new instance of the <see cref="CqlDatabaseReader"/> class. /// </summary> /// <param name="reader">The reader.</param> /// <exception cref="System.ArgumentNullException">reader can not be null.</exception> internal CqlDatabaseReader(CqlReader reader) { this.Reader = reader ?? throw new ArgumentNullException(nameof(reader), $"{nameof(reader)} can not be null."); }