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

Represents a registry of conventions.
Datei anzeigen Open project: egametang/Egametang

Public Methods

Method Description
Lookup ( Type type ) : IConventionPack

Looks up the effective set of conventions that apply to a type.

Register ( string name, IConventionPack conventions, bool>.Func filter ) : void

Registers the conventions.

Remove ( string name ) : void

Removes the conventions specified by the given name.

Removing a convention allows the removal of the special __defaults__ conventions and the __attributes__ conventions for those who want to completely customize the experience.

Private Methods

Method Description
ConventionRegistry ( ) : System

Method Details

Lookup() public static method

Looks up the effective set of conventions that apply to a type.
public static Lookup ( Type type ) : IConventionPack
type System.Type The type.
return IConventionPack

Register() public static method

Registers the conventions.
public static Register ( string name, IConventionPack conventions, bool>.Func filter ) : void
name string The name.
conventions IConventionPack The conventions.
filter bool>.Func The filter.
return void

Remove() public static method

Removes the conventions specified by the given name.
Removing a convention allows the removal of the special __defaults__ conventions and the __attributes__ conventions for those who want to completely customize the experience.
public static Remove ( string name ) : void
name string The name.
return void