Table of Contents

Method GetSerializer

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

GetSerializer(Type, IBsonSerializerRegistry)

Gets a serializer for a type.

IBsonSerializer GetSerializer(Type type, IBsonSerializerRegistry serializerRegistry)

Parameters

type Type

The type.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

Returns

IBsonSerializer

A serializer.