Class BsonSerializerOptionsExtensions
Provides extension methods for IBsonSerializerOptions.
Inheritance
object
BsonSerializerOptionsExtensions
Namespace: Primitively.MongoDB.Bson.Serialization
Assembly: Primitively.MongoDB.Bson.dll
Syntax
public static class BsonSerializerOptionsExtensions
Methods
GetSerializerType(IBsonSerializerOptions, Type)
Gets the serializer type for the specified primitive type.
Declaration
public static Type GetSerializerType(this IBsonSerializerOptions options, Type primitiveType)
Parameters
| Type | Name | Description |
|---|---|---|
| IBsonSerializerOptions | options | The BSON serializer options. |
| Type | primitiveType | The primitive type for which to get the serializer type. |
Returns
| Type | Description |
|---|---|
| Type | The serializer type for the specified primitive type. |