Method Create
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Create(Type, Type, IBsonSerializer)
Creates a new DowncastingSerializer.
public static IBsonSerializer Create(Type baseType, Type derivedType, IBsonSerializer derivedTypeSerializer)
Parameters
baseType
TypeThe base type.
derivedType
TypeThe derived type.
derivedTypeSerializer
IBsonSerializerThe derived type serializer.
Returns
- IBsonSerializer
A DowncastingSerializer instance.