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

A convention that finds the extra elements member by name (and that is also of type BsonDocument or an IDictionary<string, object>).
Inheritance: ConventionBase, IClassMapConvention, IExtraElementsMemberConvention
显示文件 Open project: egametang/Egametang Class Usage Examples

Private Properties

Property Type Description
FindExtraElementsMember string

Public Methods

Method Description
Apply ( BsonClassMap classMap ) : void

Applies a modification to the class map.

NamedExtraElementsMemberConvention ( IEnumerable names ) : System

Initializes a new instance of the NamedExtraElementsMemberConvention class.

NamedExtraElementsMemberConvention ( IEnumerable names, BindingFlags bindingFlags ) : System

Initializes a new instance of the NamedExtraElementsMemberConvention class.

NamedExtraElementsMemberConvention ( IEnumerable names, MemberTypes memberTypes ) : System

Initializes a new instance of the NamedExtraElementsMemberConvention class.

NamedExtraElementsMemberConvention ( IEnumerable names, MemberTypes memberTypes, BindingFlags bindingFlags ) : System

Initializes a new instance of the NamedExtraElementsMemberConvention class.

NamedExtraElementsMemberConvention ( string name ) : System

Initializes a new instance of the NamedExtraElementsMemberConvention class.

Private Methods

Method Description
FindExtraElementsMember ( Type type ) : string

Method Details

Apply() public method

Applies a modification to the class map.
public Apply ( BsonClassMap classMap ) : void
classMap BsonClassMap The class map.
return void

NamedExtraElementsMemberConvention() public method

Initializes a new instance of the NamedExtraElementsMemberConvention class.
public NamedExtraElementsMemberConvention ( IEnumerable names ) : System
names IEnumerable The names.
return System

NamedExtraElementsMemberConvention() public method

Initializes a new instance of the NamedExtraElementsMemberConvention class.
public NamedExtraElementsMemberConvention ( IEnumerable names, BindingFlags bindingFlags ) : System
names IEnumerable The names.
bindingFlags BindingFlags The binding flags.
return System

NamedExtraElementsMemberConvention() public method

Initializes a new instance of the NamedExtraElementsMemberConvention class.
public NamedExtraElementsMemberConvention ( IEnumerable names, MemberTypes memberTypes ) : System
names IEnumerable The names.
memberTypes MemberTypes The member types.
return System

NamedExtraElementsMemberConvention() public method

Initializes a new instance of the NamedExtraElementsMemberConvention class.
public NamedExtraElementsMemberConvention ( IEnumerable names, MemberTypes memberTypes, BindingFlags bindingFlags ) : System
names IEnumerable The names.
memberTypes MemberTypes The member types.
bindingFlags BindingFlags The binding flags.
return System

NamedExtraElementsMemberConvention() public method

Initializes a new instance of the NamedExtraElementsMemberConvention class.
public NamedExtraElementsMemberConvention ( string name ) : System
name string The name of the extra elements member.
return System