Esempio n. 1
0
 /// <summary>
 /// Returns the reader to previously bookmarked position and state.
 /// </summary>
 /// <param name="bookmark">The bookmark.</param>
 public override void ReturnToBookmark(BsonReaderBookmark bookmark)
 {
     var binaryReaderBookmark = (BsonBinaryReaderBookmark)bookmark;
     State = binaryReaderBookmark.State;
     CurrentBsonType = binaryReaderBookmark.CurrentBsonType;
     CurrentName = binaryReaderBookmark.CurrentName;
     _context = binaryReaderBookmark.CloneContext();
     _bsonStream.Position = binaryReaderBookmark.Position;
 }
Esempio n. 2
0
 /// <summary>
 /// Returns the reader to previously bookmarked position and state.
 /// </summary>
 /// <param name="bookmark">The bookmark.</param>
 public override void ReturnToBookmark(BsonReaderBookmark bookmark)
 {
     var documentReaderBookmark = (BsonDocumentReaderBookmark)bookmark;
     State = documentReaderBookmark.State;
     CurrentBsonType = documentReaderBookmark.CurrentBsonType;
     CurrentName = documentReaderBookmark.CurrentName;
     _context = documentReaderBookmark.CloneContext();
     _currentValue = documentReaderBookmark.CurrentValue;
 }
        /// <summary>
        /// Returns the reader to previously bookmarked position and state.
        /// </summary>
        /// <param name="bookmark">The bookmark.</param>
        public override void ReturnToBookmark(BsonReaderBookmark bookmark)
        {
            var binaryReaderBookmark = (BsonBinaryReaderBookmark)bookmark;

            state           = binaryReaderBookmark.State;
            currentBsonType = binaryReaderBookmark.CurrentBsonType;
            currentName     = binaryReaderBookmark.CurrentName;
            context         = binaryReaderBookmark.CloneContext();
            buffer.Position = binaryReaderBookmark.Position;
        }
Esempio n. 4
0
        /// <summary>
        /// Returns the reader to previously bookmarked position and state.
        /// </summary>
        /// <param name="bookmark">The bookmark.</param>
        public override void ReturnToBookmark(
            BsonReaderBookmark bookmark
            )
        {
            var jsonReaderBookmark = (JsonReaderBookmark)bookmark;

            state           = jsonReaderBookmark.State;
            currentBsonType = jsonReaderBookmark.CurrentBsonType;
            currentName     = jsonReaderBookmark.CurrentName;
            context         = jsonReaderBookmark.CloneContext();
            currentToken    = jsonReaderBookmark.CurrentToken;
            currentValue    = jsonReaderBookmark.CurrentValue;
            pushedToken     = jsonReaderBookmark.PushedToken;
            buffer.Position = jsonReaderBookmark.Position;
        }
Esempio n. 5
0
        /// <summary>
        /// Returns the reader to previously bookmarked position and state.
        /// </summary>
        /// <param name="bookmark">The bookmark.</param>
        public override void ReturnToBookmark(
            BsonReaderBookmark bookmark
            )
        {
            if (disposed)
            {
                ThrowObjectDisposedException();
            }
            var jsonReaderBookmark = (JsonReaderBookmark)bookmark;

            state           = jsonReaderBookmark.State;
            currentBsonType = jsonReaderBookmark.CurrentBsonType;
            currentName     = jsonReaderBookmark.CurrentName;
            context         = jsonReaderBookmark.CloneContext();
            currentToken    = jsonReaderBookmark.CurrentToken;
            currentValue    = jsonReaderBookmark.CurrentValue;
            pushedToken     = jsonReaderBookmark.PushedToken;
            buffer.Position = jsonReaderBookmark.Position;
        }
 /// <summary>
 /// Returns the reader to previously bookmarked position and state.
 /// </summary>
 /// <param name="bookmark">The bookmark.</param>
 public abstract void ReturnToBookmark(BsonReaderBookmark bookmark);
 /// <summary>
 /// Returns the reader to previously bookmarked position and state.
 /// </summary>
 /// <param name="bookmark">The bookmark.</param>
 public override void ReturnToBookmark(
     BsonReaderBookmark bookmark
 ) {
     var binaryReaderBookmark = (BsonBinaryReaderBookmark) bookmark;
     state = binaryReaderBookmark.State;
     currentBsonType = binaryReaderBookmark.CurrentBsonType;
     currentName = binaryReaderBookmark.CurrentName;
     context = binaryReaderBookmark.CloneContext();
     buffer.Position = binaryReaderBookmark.Position;
 }
Esempio n. 8
0
 /// <summary>
 /// Returns the reader to previously bookmarked position and state.
 /// </summary>
 /// <param name="bookmark">The bookmark.</param>
 public abstract void ReturnToBookmark(BsonReaderBookmark bookmark);
 /// <summary>
 /// Returns the reader to previously bookmarked position and state.
 /// </summary>
 /// <param name="bookmark">The bookmark.</param>
 public override void ReturnToBookmark(
     BsonReaderBookmark bookmark
 ) {
     var documentReaderBookmark = (BsonDocumentReaderBookmark) bookmark;
     state = documentReaderBookmark.State;
     currentBsonType = documentReaderBookmark.CurrentBsonType;
     currentName = documentReaderBookmark.CurrentName;
     context = documentReaderBookmark.CloneContext();
     currentValue = documentReaderBookmark.CurrentValue;
 }
Esempio n. 10
0
 /// <summary>
 /// Returns the reader to previously bookmarked position and state.
 /// </summary>
 /// <param name="bookmark">The bookmark.</param>
 public override void ReturnToBookmark(
     BsonReaderBookmark bookmark
 ) {
     if (disposed) { ThrowObjectDisposedException(); }
     var jsonReaderBookmark = (JsonReaderBookmark) bookmark;
     state = jsonReaderBookmark.State;
     currentBsonType = jsonReaderBookmark.CurrentBsonType;
     currentName = jsonReaderBookmark.CurrentName;
     context = jsonReaderBookmark.CloneContext();
     currentToken = jsonReaderBookmark.CurrentToken;
     currentValue = jsonReaderBookmark.CurrentValue;
     pushedToken = jsonReaderBookmark.PushedToken;
     buffer.Position = jsonReaderBookmark.Position;
 }
 /// <summary>
 /// Returns the reader to previously bookmarked position and state.
 /// </summary>
 /// <param name="bookmark">The bookmark.</param>
 public override void ReturnToBookmark(BsonReaderBookmark bookmark)
 {
     var binaryReaderBookmark = (BsonBinaryReaderBookmark)bookmark;
     State = binaryReaderBookmark.State;
     CurrentBsonType = binaryReaderBookmark.CurrentBsonType;
     CurrentName = binaryReaderBookmark.CurrentName;
     _context = binaryReaderBookmark.CloneContext();
     _bsonStream.Position = binaryReaderBookmark.Position;
 }
Esempio n. 12
0
 public override void ReturnToBookmark(
     BsonReaderBookmark bookmark
 )
 {
     var jsonReaderBookmark = (JsonReaderBookmark) bookmark;
     state = jsonReaderBookmark.State;
     currentBsonType = jsonReaderBookmark.CurrentBsonType;
     currentName = jsonReaderBookmark.CurrentName;
     context = jsonReaderBookmark.Context;
     currentToken = jsonReaderBookmark.CurrentToken;
     currentValue = jsonReaderBookmark.CurrentValue;
     pushedToken = jsonReaderBookmark.PushedToken;
     buffer.Position = jsonReaderBookmark.Position;
 }
 public override void ReturnToBookmark(
     BsonReaderBookmark bookmark
 )
 {
     var documentReaderBookmark = (BsonDocumentReaderBookmark) bookmark;
     context = documentReaderBookmark.Context;
     state = documentReaderBookmark.State;
     currentBsonType = documentReaderBookmark.CurrentBsonType;
 }