Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.DataManagement.AssemblyUtils Class Reference

Detailed Description

Provides API for handling runtime assembly members.

Static Public Member Functions

static Type GetType (string typeName)
 Looking for type without defined assembly among loaded ones. More...
 
static Type GetType (string typeName, bool throwOnError)
 Looking for type without defined assembly among loaded ones. More...
 
static Type GetType (string typeName, bool throwOnError, bool ignoreCase)
 Looking for type without defined assembly among loaded ones. More...
 
static Type GetType (string typeName, string shortAssembly)
 Looking for the type in certain assembly ignoring the version, culture and token of the last one. More...
 
static Type GetType (string typeName, string shortAssembly, bool throwOnError)
 Looking for the type in certain assembly ignoring the version, culture and token of the last one. More...
 
static Type GetType (string typeName, string shortAssembly, bool throwOnError, bool ignoreCase)
 Looking for the type in certain assembly ignoring the version, culture and token of the last one. More...
 
static void MakeBond (string typeName, string shortAssembly, Type type)
 Making bond between string key and a type. Overrides existing one in case if registered. More...
 
static void MakeBond (string typeName, Type type)
 Making bond between string key and a type. Overrides existing one in case if registered. More...
 
static void DropBonds ()
 Drops entire established bonds between string representations and types.
 

Member Function Documentation

◆ GetType() [1/6]

static Type Doloro.DataManagement.AssemblyUtils.GetType ( string  typeName)
static

Looking for type without defined assembly among loaded ones.

Parameters
typeNameFull name including namespace of the type to search.
Returns
Detected type. Null or exception in case if not found.
Exceptions
TypeAccessExceptionOccurs only if throwOnError is true. Type not found among loaded assemblies.

◆ GetType() [2/6]

static Type Doloro.DataManagement.AssemblyUtils.GetType ( string  typeName,
bool  throwOnError 
)
static

Looking for type without defined assembly among loaded ones.

Parameters
typeNameFull name including namespace of the type to search.
throwOnErrorIf true then will throw the exception in case if type not found.
Returns
Detected type. Null or exception in case if not found.
Exceptions
TypeAccessExceptionOccurs only if throwOnError is true. Type not found among loaded assemblies.

◆ GetType() [3/6]

static Type Doloro.DataManagement.AssemblyUtils.GetType ( string  typeName,
bool  throwOnError,
bool  ignoreCase 
)
static

Looking for type without defined assembly among loaded ones.

Parameters
typeNameFull name including namespace of the type to search.
throwOnErrorIf true then will throw the exception in case if type not found.
ignoreCaseIf true the name will be considered as case insensitive.
Returns
Detected type. Null or exception in case if not found.
Exceptions
TypeAccessExceptionOccurs only if throwOnError is true. Type not found among loaded assemblies.

◆ GetType() [4/6]

static Type Doloro.DataManagement.AssemblyUtils.GetType ( string  typeName,
string  shortAssembly 
)
static

Looking for the type in certain assembly ignoring the version, culture and token of the last one.

Parameters
typeNameFull name including namespace of the type to search.
shortAssemblyName of the assembly without meta-data.
Returns
Detected type. Null or exception in case if not found.
Exceptions
DllNotFoundExceptionAssembly with defined name not found among loaded.
TypeAccessExceptionType not declared into the assembly.

◆ GetType() [5/6]

static Type Doloro.DataManagement.AssemblyUtils.GetType ( string  typeName,
string  shortAssembly,
bool  throwOnError 
)
static

Looking for the type in certain assembly ignoring the version, culture and token of the last one.

Parameters
typeNameFull name including namespace of the type to search.
shortAssemblyName of the assembly without meta-data.
throwOnErrorIf true then will throw the exception in case if type not found.
Returns
Detected type. Null or exception in case if not found.
Exceptions
DllNotFoundExceptionAssembly with defined name not found among loaded.
TypeAccessExceptionType not declared into the assembly.

◆ GetType() [6/6]

static Type Doloro.DataManagement.AssemblyUtils.GetType ( string  typeName,
string  shortAssembly,
bool  throwOnError,
bool  ignoreCase 
)
static

Looking for the type in certain assembly ignoring the version, culture and token of the last one.

Parameters
typeNameFull name including namespace of the type to search.
shortAssemblyName of the assembly without meta-data.
throwOnErrorIf true then will throw the exception in case if type not found.
ignoreCaseIf true the name will be considered as case insensitive.
Returns
Detected type. Null or exception in case if not found.
Exceptions
DllNotFoundExceptionAssembly with defined name not found among loaded.
TypeAccessExceptionType not declared into the assembly.

◆ MakeBond() [1/2]

static void Doloro.DataManagement.AssemblyUtils.MakeBond ( string  typeName,
string  shortAssembly,
Type  type 
)
static

Making bond between string key and a type. Overrides existing one in case if registered.

Parameters
typeNameNormally the full name of the type including namespace.
shortAssemblyName of the assembly without meta-data.
typeType that will be binded to the key for fast access.
Exceptions
ArgumentExceptiontypeName or shortAssembly is null or whitespace.
ArgumentNullExceptiontype is null.

◆ MakeBond() [2/2]

static void Doloro.DataManagement.AssemblyUtils.MakeBond ( string  typeName,
Type  type 
)
static

Making bond between string key and a type. Overrides existing one in case if registered.

Parameters
typeNameKey of the bond. Normally the full name of the type including namespace.
typeType that will be binded to the key for fast access.
Exceptions
ArgumentExceptiontypeName is null or whitespace.
ArgumentNullExceptiontype is null.

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