Represents an in-code using reference. e.g. using System.System.Text;
Public Member Functions | |
CodeReference (string reference) | |
Creates a new code reference with the given reference text. More... | |
Type | GetType (string name) |
Attempts to get the type by name through this reference. More... | |
Static Public Member Functions | |
static Type | GetFirstType (string name) |
Gets the first type found with the given name from the set of all assemblies. More... | |
static Assembly | GetAssembly (string name) |
Gets an available assembly by name, if it's found. Null otherwise. More... | |
static void | Setup () |
Called on demand to setup the Assemblies array. More... | |
static void | AddAssembly (Assembly assembly) |
Adds an assembly to the code assembly set. More... | |
Public Attributes | |
string | Reference |
The reference text. More... | |
Assembly | InAssembly |
The assembly this reference points to. More... | |
Static Public Attributes | |
static Assembly | CurrentAssembly |
The assembly 'this' is defined in. More... | |
static Dictionary< string, CodeAssembly > | Assemblies |
All loaded assemblies More... | |
|
inline |
Creates a new code reference with the given reference text.
reference | The reference text. Note that it must include the assembly name at the start. E.g. System.System.Text. |
|
inlinestatic |
Adds an assembly to the code assembly set.
|
inlinestatic |
Gets an available assembly by name, if it's found. Null otherwise.
name | The name of the assembly to find. |
|
inlinestatic |
Gets the first type found with the given name from the set of all assemblies.
name | The type to look for. |
|
inline |
Attempts to get the type by name through this reference.
name | The name of the type to find. |
|
inlinestatic |
Called on demand to setup the Assemblies array.
|
static |
All loaded assemblies
|
static |
The assembly 'this' is defined in.
Assembly Nitro.CodeReference.InAssembly |
The assembly this reference points to.
string Nitro.CodeReference.Reference |
The reference text.