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.
Afficher le fichier Open project: ecologylab/simplCSharp Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetCollectionType ( FieldInfo thatField ) : CollectionType
TypeRegistry ( ) : System

Initializes the TypeRegistry

Method Details

GetCollectionTypeBycSharpName() public static méthode

public static GetCollectionTypeBycSharpName ( String cSharpClassName ) : CollectionType
cSharpClassName String
Résultat CollectionType

GetDefaultCollectionOrMapType() public static méthode

public static GetDefaultCollectionOrMapType ( System.Boolean isDictionary ) : CollectionType
isDictionary System.Boolean
Résultat CollectionType

Init() public static méthode

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

RegisterSimplType() public static méthode

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

RegisterTypes() public static méthode

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

SetDefaultCollectionType() public static méthode

public static SetDefaultCollectionType ( CollectionType ct ) : void
ct CollectionType
Résultat void

SetDefaultMapType() public static méthode

public static SetDefaultMapType ( CollectionType ct ) : void
ct CollectionType
Résultat void