Method GetSerializer
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
GetSerializer(Type)
Gets the serializer for the specified type
.
IBsonSerializer GetSerializer(Type type)
Parameters
type
TypeThe type.
Returns
- IBsonSerializer
The serializer.
GetSerializer<T>()
Gets the serializer for the specified T
.
IBsonSerializer<T> GetSerializer<T>()
Returns
- IBsonSerializer<T>
The serializer.
Type Parameters
T
The value type of the serializer.