Table of Contents

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 Type

The base type.

derivedType Type

The derived type.

derivedTypeSerializer IBsonSerializer

The derived type serializer.

Returns

IBsonSerializer

A DowncastingSerializer instance.