<PackageReference Include="Newtonsoft.Json.Bson" Version="1.0.2" />

Newtonsoft.Json.Bson.BsonDataReader

public class BsonDataReader : JsonReader
Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data.
public DateTimeKind DateTimeKindHandling { get; set; }

Gets or sets the DateTimeKind used when reading DateTime values from BSON.

public bool JsonNet35BinaryCompatibility { get; set; }

Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary.

public bool ReadRootValueAsArray { get; set; }

Gets or sets a value indicating whether the root object will be read as a JSON array.

public BsonDataReader(Stream stream)

Initializes a new instance of the BsonDataReader class.

Initializes a new instance of the BsonDataReader class.

public BsonDataReader(Stream stream, bool readRootValueAsArray, DateTimeKind dateTimeKindHandling)

Initializes a new instance of the BsonDataReader class.

public BsonDataReader(BinaryReader reader, bool readRootValueAsArray, DateTimeKind dateTimeKindHandling)

Initializes a new instance of the BsonDataReader class.