C# 클래스 MongoDB.Bson.Serialization.Conventions.ScalarDiscriminatorConvention

Represents a discriminator convention where the discriminator is provided by the class map of the actual type.
상속: StandardDiscriminatorConvention
파일 보기 프로젝트 열기: egametang/Egametang 1 사용 예제들

공개 메소드들

메소드 설명
GetDiscriminator ( Type nominalType, Type actualType ) : BsonValue

Gets the discriminator value for an actual type.

ScalarDiscriminatorConvention ( string elementName ) : System

Initializes a new instance of the ScalarDiscriminatorConvention class.

메소드 상세

GetDiscriminator() 공개 메소드

Gets the discriminator value for an actual type.
public GetDiscriminator ( Type nominalType, Type actualType ) : BsonValue
nominalType System.Type The nominal type.
actualType System.Type The actual type.
리턴 BsonValue

ScalarDiscriminatorConvention() 공개 메소드

Initializes a new instance of the ScalarDiscriminatorConvention class.
public ScalarDiscriminatorConvention ( string elementName ) : System
elementName string The element name.
리턴 System