C# Class MongoDB.Bson.Serialization.TypeNameDiscriminator

Supports using type names as discriminators.
显示文件 Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
GetActualType ( string typeName ) : Type

Resolves a type name discriminator.

GetDiscriminator ( Type type ) : string

Gets a type name to be used as a discriminator (like AssemblyQualifiedName but shortened for common DLLs).

Private Methods

Method Description
TryParseGenericTypeName ( string typeName, string &genericTypeDefinitionName, string &typeArgumentNames ) : bool
TypeNameDiscriminator ( ) : System

Method Details

GetActualType() public static method

Resolves a type name discriminator.
public static GetActualType ( string typeName ) : Type
typeName string The type name.
return System.Type

GetDiscriminator() public static method

Gets a type name to be used as a discriminator (like AssemblyQualifiedName but shortened for common DLLs).
public static GetDiscriminator ( Type type ) : string
type System.Type The type.
return string