Method GetDiscriminator
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
GetDiscriminator(Type)
Gets a type name to be used as a discriminator (like AssemblyQualifiedName but shortened for common DLLs).
public static string GetDiscriminator(Type type)
Parameters
type
TypeThe type.
Returns
- string
The type name.