SystemJsonBsonSerializer class¶
Defined in
Namespace: Akavache.Reactive.SystemTextJson
Assembly: Akavache.SystemTextJson.Bson.Reactive.dll
Full name: Akavache.Reactive.SystemTextJson.SystemJsonBsonSerializer
Modifiers: public
Summary¶
Supplies the "Date":(\d{15,}) regex that recognises tick-based BSON date fields.
net7+ gets it from the [GeneratedRegex] source generator; older targets, which have
no generator, fall back to a compiled instance built once at type initialisation. Both
branches match exactly the same pattern.
Applies to
net10.0-android36.0, net462, net481, net471
Class hierarchy
classDiagram
class SystemJsonBsonSerializer
class ISerializer {
<>
}
ISerializer <|.. SystemJsonBsonSerializer
Implements: ISerializer
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| Options | Gets or sets the JSON serializer options for customizing serialization behavior. |
| ForcedDateTimeKind | Gets or sets the DateTimeKind handling for BSON readers to be forced. |
Methods¶
| Name | Summary |
|---|---|
| static IsPotentialBsonData | Checks if data might be BSON format. |
| static DeserializeAot | Deserializes from bytes using the provided JsonTypeInfo for AOT-safe deserialization. BSON decoding... |
| static SerializeAot | Serializes to bytes using the provided JsonTypeInfo for AOT-safe serialization. BSON encoding is not... |
| Deserialize | Deserializes from bytes. |
| Serialize | Serializes to bytes. |