You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/MongoDB.Bson/IO/IBsonReader.cs
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ public interface IBsonReader : IDisposable
62
62
/// <summary>
63
63
/// Pops the settings.
64
64
/// </summary>
65
-
voidPopSettings();//TODO Why do we have push and pop methods? They are not used. We should remove them.
65
+
voidPopSettings();//TODO Why do we have push and pop methods? They are not used. We should remove them.
66
66
67
67
/// <summary>
68
68
/// Pushes new settings for the reader.
@@ -246,14 +246,6 @@ public interface IBsonReader : IDisposable
246
246
/// <param name="bookmark">The bookmark.</param>
247
247
voidReturnToBookmark(BsonReaderBookmarkbookmark);
248
248
249
-
//TODO I'm not sure why this was not already present, there is already an equivalent in IBsonWriter.
250
-
//We can also avoid adding this to the interface and casting all the occurrences of IBsonReader to BsonReader (the base class for all readers in our codebase).
251
-
//Of course this would be a problem if someone implements IBsonReader in a different way.
252
-
/// <summary>
253
-
/// Gets the settings of the reader.
254
-
/// </summary>
255
-
BsonReaderSettingsSettings{get;}
256
-
257
249
/// <summary>
258
250
/// Skips the name (reader must be positioned on a name).
259
251
/// </summary>
@@ -264,4 +256,13 @@ public interface IBsonReader : IDisposable
264
256
/// </summary>
265
257
voidSkipValue();
266
258
}
259
+
260
+
internalinterfaceIBsonReaderInternal:IBsonReader
261
+
{
262
+
//TODO I'm not sure why this was not already present, there is already an equivalent in IBsonWriter.
0 commit comments