C# Класс MongoDB.Bson.Serialization.BsonCreatorMap

Represents a mapping to a delegate and its arguments.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateInstance ( object>.Dictionary values ) : object
ThrowFrozenException ( ) : void
ThrowNotFrozenException ( ) : void

Описание методов

BsonCreatorMap() публичный метод

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
Результат System

Freeze() публичный метод

Freezes the creator map.
public Freeze ( ) : void
Результат void

HasDefaultValue() публичный метод

Gets whether there is a default value for a missing element.
public HasDefaultValue ( string elementName ) : bool
elementName string The element name.
Результат bool

SetArguments() публичный метод

Sets the arguments for the creator map.
public SetArguments ( IEnumerable arguments ) : BsonCreatorMap
arguments IEnumerable The arguments.
Результат BsonCreatorMap

SetArguments() публичный метод

Sets the arguments for the creator map.
public SetArguments ( IEnumerable argumentNames ) : BsonCreatorMap
argumentNames IEnumerable The argument names.
Результат BsonCreatorMap