C# Class MongoDB.Bson.Serialization.BsonCreatorMap

Represents a mapping to a delegate and its arguments.
Afficher le fichier Open project: egametang/Egametang Class Usage Examples

Méthodes publiques

Méthode Description
BsonCreatorMap ( BsonClassMap classMap, MemberInfo memberInfo, Delegate @delegate ) : System

Initializes a new instance of the BsonCreatorMap class.

Freeze ( ) : void

Freezes the creator map.

HasDefaultValue ( string elementName ) : bool

Gets whether there is a default value for a missing element.

SetArguments ( IEnumerable arguments ) : BsonCreatorMap

Sets the arguments for the creator map.

SetArguments ( IEnumerable argumentNames ) : BsonCreatorMap

Sets the arguments for the creator map.

Private Methods

Méthode Description
CreateInstance ( object>.Dictionary values ) : object
ThrowFrozenException ( ) : void
ThrowNotFrozenException ( ) : void

Method Details

BsonCreatorMap() public méthode

Initializes a new instance of the BsonCreatorMap class.
public BsonCreatorMap ( BsonClassMap classMap, MemberInfo memberInfo, Delegate @delegate ) : System
classMap BsonClassMap The class map.
memberInfo System.Reflection.MemberInfo The member info (null if none).
@delegate System.Delegate
Résultat System

Freeze() public méthode

Freezes the creator map.
public Freeze ( ) : void
Résultat void

HasDefaultValue() public méthode

Gets whether there is a default value for a missing element.
public HasDefaultValue ( string elementName ) : bool
elementName string The element name.
Résultat bool

SetArguments() public méthode

Sets the arguments for the creator map.
public SetArguments ( IEnumerable arguments ) : BsonCreatorMap
arguments IEnumerable The arguments.
Résultat BsonCreatorMap

SetArguments() public méthode

Sets the arguments for the creator map.
public SetArguments ( IEnumerable argumentNames ) : BsonCreatorMap
argumentNames IEnumerable The argument names.
Résultat BsonCreatorMap