C# Class Simpl.Serialization.Types.TypeRegistry

Class to hold the mappings of different datatypes supported by the serialization framework. This objects returns the right abstraction for the supported types.
Datei anzeigen Open project: ecologylab/simplCSharp Class Usage Examples

Public Methods

Method Description
GetCollectionTypeBycSharpName ( String cSharpClassName ) : CollectionType

GetDefaultCollectionOrMapType ( System.Boolean isDictionary ) : CollectionType

Init ( ) : void

Initializes the TypeRegistry by adding all fundamental types to the Registry.

RegisterSimplType ( SimplType type ) : bool

Registers a given SimplType into one of the relevant type registries.

RegisterTypes ( SimplType simplTypes ) : bool

Registers an entire array of simplTypes

SetDefaultCollectionType ( CollectionType ct ) : void
SetDefaultMapType ( CollectionType ct ) : void

Private Methods

Method Description
GetCollectionType ( FieldInfo thatField ) : CollectionType
TypeRegistry ( ) : System

Initializes the TypeRegistry

Method Details

GetCollectionTypeBycSharpName() public static method

public static GetCollectionTypeBycSharpName ( String cSharpClassName ) : CollectionType
cSharpClassName String
return CollectionType

GetDefaultCollectionOrMapType() public static method

public static GetDefaultCollectionOrMapType ( System.Boolean isDictionary ) : CollectionType
isDictionary System.Boolean
return CollectionType

Init() public static method

Initializes the TypeRegistry by adding all fundamental types to the Registry.
public static Init ( ) : void
return void

RegisterSimplType() public static method

Registers a given SimplType into one of the relevant type registries.
public static RegisterSimplType ( SimplType type ) : bool
type SimplType Type to register
return bool

RegisterTypes() public static method

Registers an entire array of simplTypes
public static RegisterTypes ( SimplType simplTypes ) : bool
simplTypes SimplType Simpl Types to register
return bool

SetDefaultCollectionType() public static method

public static SetDefaultCollectionType ( CollectionType ct ) : void
ct CollectionType
return void

SetDefaultMapType() public static method

public static SetDefaultMapType ( CollectionType ct ) : void
ct CollectionType
return void