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
IDiscriminatorConventionThe discriminator convention.
Returns
- ObjectSerializer
An ObjectSerializer with the specified discriminator convention.