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

A member map convention that wraps a delegate.
Inheritance: ConventionBase, IMemberMapConvention
ファイルを表示 Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
Apply ( BsonMemberMap memberMap ) : void

Applies a modification to the member map.

DelegateMemberMapConvention ( string name, Action action ) : System

Initializes a new instance of the DelegateMemberMapConvention class.

Method Details

Apply() public method

Applies a modification to the member map.
public Apply ( BsonMemberMap memberMap ) : void
memberMap BsonMemberMap The member map.
return void

DelegateMemberMapConvention() public method

Initializes a new instance of the DelegateMemberMapConvention class.
public DelegateMemberMapConvention ( string name, Action action ) : System
name string The name.
action Action The delegate.
return System