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

A class map convention that wraps a delegate.
Inheritance: ConventionBase, IClassMapConvention
Mostra file Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
Apply ( BsonClassMap classMap ) : void

Applies a modification to the class map.

DelegateClassMapConvention ( string name, Action action ) : System

Initializes a new instance of the DelegateClassMapConvention class.

Method Details

Apply() public method

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

DelegateClassMapConvention() public method

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