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
IBsonSerializerThe serializer.
Returns
- IDiscriminatorConvention
The discriminator convention.