Detailed Description

Stores a map of aliases to system types. E.g. int to System.Int32.

Static Public Member Functions

static void Add (string alias, Type forType)
 Adds an alias to the global map. More...
 
static Type Find (string alias)
 Finds the system type for a given alias. More...
 
static void Setup ()
 Called when the system is starting to setup the default alias set. More...
 

Static Private Attributes

static Dictionary< string, TypeAliasMap =new Dictionary<string,Type>()
 The global lookup map of alias to type. More...
 

Member Function Documentation

static void Nitro.TypeAliases.Add ( string  alias,
Type  forType 
)
inlinestatic

Adds an alias to the global map.

Parameters
aliasThe alias string to use.
forTypeThe system type it maps to.
static Type Nitro.TypeAliases.Find ( string  alias)
inlinestatic

Finds the system type for a given alias.

Parameters
aliasThe alias to look for.
Returns
The system type, if found.
static void Nitro.TypeAliases.Setup ( )
inlinestatic

Called when the system is starting to setup the default alias set.

Member Data Documentation

Dictionary<string,Type> Nitro.TypeAliases.AliasMap =new Dictionary<string,Type>()
staticprivate

The global lookup map of alias to type.