コード例 #1
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;
        }
コード例 #2
0
ファイル: BsonReader.cs プロジェクト: sunmoonone/SequoiaDB-1
 // constructors
 /// <summary>
 /// Initializes a new instance of the BsonReader class.
 /// </summary>
 /// <param name="settings">The reader settings.</param>
 protected BsonReader(BsonReaderSettings settings)
 {
     _settings = settings.FrozenCopy();
     _state    = BsonReaderState.Initial;
 }