Table of Contents

Method CreateGenericSerializer

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

CreateGenericSerializer(Type, params Type[])

Creates the serializer from a serializer type definition and type arguments.

protected virtual IBsonSerializer CreateGenericSerializer(Type serializerTypeDefinition, params Type[] typeArguments)

Parameters

serializerTypeDefinition Type

The serializer type definition.

typeArguments Type[]

The type arguments.

Returns

IBsonSerializer

A serializer.

CreateGenericSerializer(Type, Type[], IBsonSerializerRegistry)

Creates the serializer from a serializer type definition and type arguments.

protected virtual IBsonSerializer CreateGenericSerializer(Type serializerTypeDefinition, Type[] typeArguments, IBsonSerializerRegistry serializerRegistry)

Parameters

serializerTypeDefinition Type

The serializer type definition.

typeArguments Type[]

The type arguments.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

Returns

IBsonSerializer

A serializer.