Table of Contents

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 Type

The type.

Returns

string

The type name.