FrozenCopy() public method

Returns a frozen copy of the settings.
public FrozenCopy ( ) : BsonReaderSettings
return BsonReaderSettings
Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
        // 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;
        }
Ejemplo n.º 4
0
        // 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;
        }