/// <summary> /// Initializes a new instance of the BsonReader class. /// </summary> /// <param name="settings">The reader settings.</param> protected BsonReader( BsonReaderSettings settings ) { this.settings = settings.FrozenCopy(); this.state = BsonReaderState.Initial; }
/// <summary> /// Initializes a new instance of the BsonReader class. /// </summary> /// <param name="settings">The reader settings.</param> protected BsonReader( BsonReaderSettings settings ) { this.settings = settings.FrozenCopy(); this.state = BsonReaderState.Initial; }
// constructors /// <summary> /// Initializes a new instance of the BsonReader class. /// </summary> /// <param name="settings">The reader settings.</param> protected BsonReader(BsonReaderSettings settings) { if (settings == null) { throw new ArgumentNullException("settings"); } _settings = settings.FrozenCopy(); _state = BsonReaderState.Initial; }
// constructors /// <summary> /// Initializes a new instance of the BsonReader class. /// </summary> /// <param name="settings">The reader settings.</param> protected BsonReader(BsonReaderSettings settings) { if (settings == null) { throw new ArgumentNullException("settings"); } _settings = settings.FrozenCopy(); _state = BsonReaderState.Initial; }