Empeld
Empeld plugin documentation.
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 IMPORTANT: Unique class id's are not the same across the network or between loads 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 IMPORTANT: Unique class id's are not the same across the network or between loads

Member Function Documentation

◆ Get< T >()

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.
54  {
55  return UniqueIdCache<T>.Id;
56  }

◆ GetUniqueId< T >()

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.
40  {
41  return UniqueIdCache<T>.Id;
42  }

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