Table of Contents

Method GetDerivedTypeSerializer

Namespace
MongoDB.Bson.Serialization
Assembly
MongoDB.Bson.dll

GetDerivedTypeSerializer(IBsonSerializer, Type)

Gets the serializer for a derived type starting from a serializer for a base type.

public static IBsonSerializer GetDerivedTypeSerializer(this IBsonSerializer baseTypeSerializer, Type derivedType)

Parameters

baseTypeSerializer IBsonSerializer

The serializer for the base type.

derivedType Type

The derived type.

Returns

IBsonSerializer

The serializer for the derived type.