Provides helper methods for reflection.
Gets all assemblies availables.
public Assembly[] GetAssemblies()
Gets the Type from the specied fullQualifiedTypeName.
public Type GetType(fullQualifiedTypeName)
The Type.
Name | Type | Summary |
---|---|---|
fullQualifiedTypeName | String | A full qualified type name. |
Type | Summary |
---|---|
FrameworkException | Thown when fullQualifiedTypeName could not ne parsed. -or- When the type could not be loaded. |
Tries to get the specified fullQualifiedTypeName.
public Type TryGetType(fullQualifiedTypeName)
A Type corresponding to the received argument or null if the type could not be loaded.
This method uses reflection to load the type assembly for getting it's type.
Name | Type | Summary |
---|---|---|
fullQualifiedTypeName | String | Full qualified type name string. |
Try to get the type specified on fullQualifiedTypeName
only if it is assignable from type
public Type TryGetType<T>(fullQualifiedTypeName)
A Type for the specified fullQualifiedTypeName.
Name | Type | Summary |
---|---|---|
fullQualifiedTypeName | String | Full qualified type name. |
Parses a full qualified type name and assign the values of the type and assembly names to the specified variables.
public Boolean TryGetTypeAndAssemblyNames(fullQualifiedTypeName, ref typeName, ref assemblyName)
true if the name could be parsed correctly, otherwise false.
Name | Type | Summary |
---|---|---|
fullQualifiedTypeName | String | Full qualified type name. |
typeName | String& | Type name extracted from fullQualifiedTypeName. |
assemblyName | String& | Assembly name extracted from fullQualifiedTypeName. |
In this document