Table of Contents

Method CreateSerializer

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

CreateSerializer(Type)

Creates the serializer.

protected virtual IBsonSerializer CreateSerializer(Type serializerType)

Parameters

serializerType Type

The serializer type.

Returns

IBsonSerializer

A serializer.

CreateSerializer(Type, IBsonSerializerRegistry)

Creates the serializer.

protected virtual IBsonSerializer CreateSerializer(Type serializerType, IBsonSerializerRegistry serializerRegistry)

Parameters

serializerType Type

The serializer type.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

Returns

IBsonSerializer

A serializer.