Table of Contents

Method WithDiscriminatorConvention

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

WithDiscriminatorConvention(IDiscriminatorConvention)

Returns a new ObjectSerializer configured the same but with the specified discriminator convention.

public ObjectSerializer WithDiscriminatorConvention(IDiscriminatorConvention discriminatorConvention)

Parameters

discriminatorConvention IDiscriminatorConvention

The discriminator convention.

Returns

ObjectSerializer

An ObjectSerializer with the specified discriminator convention.