C# Class MongoDB.Bson.Serialization.Conventions.StandardDiscriminatorConvention

Represents the standard discriminator conventions (see ScalarDiscriminatorConvention and HierarchicalDiscriminatorConvention).
Inheritance: IDiscriminatorConvention
Afficher le fichier Open project: egametang/Egametang

Méthodes publiques

Méthode Description
GetActualType ( MongoDB.Bson.IO.BsonReader bsonReader, Type nominalType ) : Type

Gets the actual type of an object by reading the discriminator from a BsonReader.

GetDiscriminator ( Type nominalType, Type actualType ) : BsonValue

Gets the discriminator value for an actual type.

Méthodes protégées

Méthode Description
StandardDiscriminatorConvention ( string elementName ) : System

Initializes a new instance of the StandardDiscriminatorConvention class.

Method Details

GetActualType() public méthode

Gets the actual type of an object by reading the discriminator from a BsonReader.
public GetActualType ( MongoDB.Bson.IO.BsonReader bsonReader, Type nominalType ) : Type
bsonReader MongoDB.Bson.IO.BsonReader The reader.
nominalType System.Type The nominal type.
Résultat System.Type

GetDiscriminator() public abstract méthode

Gets the discriminator value for an actual type.
public abstract GetDiscriminator ( Type nominalType, Type actualType ) : BsonValue
nominalType System.Type The nominal type.
actualType System.Type The actual type.
Résultat BsonValue

StandardDiscriminatorConvention() protected méthode

Initializes a new instance of the StandardDiscriminatorConvention class.
protected StandardDiscriminatorConvention ( string elementName ) : System
elementName string The element name.
Résultat System