Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
pluginbase.Helpers.UniqueClassIds Class Reference

Associated a unique integer ID with a class type for faster lookups The unique Id are stored in the app domain using a static tempalte More...

Static Public Member Functions

static uint GetUniqueId< T > (this T o)
 Gets the unique identifier for a class More...
 
static uint Get< T > ()
 Gets the unique identifier for a type More...
 

Detailed Description

Associated a unique integer ID with a class type for faster lookups The unique Id are stored in the app domain using a static tempalte

Member Function Documentation

static uint pluginbase.Helpers.UniqueClassIds.Get< T > ( )
static

Gets the unique identifier for a type

Returns
The unique identifier.
Template Parameters
TThe 1st type parameter.
53  {
54  return UniqueIdCache<T>.Id;
55  }
static uint pluginbase.Helpers.UniqueClassIds.GetUniqueId< T > ( this T  o)
static

Gets the unique identifier for a class

Returns
The unique identifier.
Parameters
oO.
Template Parameters
TThe 1st type parameter.
39  {
40  return UniqueIdCache<T>.Id;
41  }

The documentation for this class was generated from the following file: