C# Class MongoDB.Bson.Serialization.BsonCreatorMap

Represents a mapping to a delegate and its arguments.
Mostrar archivo Open project: egametang/Egametang Class Usage Examples

Public Methods

Method 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

Method Description
CreateInstance ( object>.Dictionary values ) : object
ThrowFrozenException ( ) : void
ThrowNotFrozenException ( ) : void

Method Details

BsonCreatorMap() public method

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
return System

Freeze() public method

Freezes the creator map.
public Freeze ( ) : void
return void

HasDefaultValue() public method

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

SetArguments() public method

Sets the arguments for the creator map.
public SetArguments ( IEnumerable arguments ) : BsonCreatorMap
arguments IEnumerable The arguments.
return BsonCreatorMap

SetArguments() public method

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