Table of Contents

Method GetDiscriminatorConvention

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

GetDiscriminatorConvention(IBsonSerializer)

Gets the discriminator convention for a serializer.

public static IDiscriminatorConvention GetDiscriminatorConvention(this IBsonSerializer serializer)

Parameters

serializer IBsonSerializer

The serializer.

Returns

IDiscriminatorConvention

The discriminator convention.