Contains utilities for working with C# reflection types and getting a type by its name.
More...
|
| static Type | GetType (string fullName) |
| | Get a type given its full name (including namespace). More...
|
| |
| static string | GetDisplayName (this Type type, bool includeNamespace=false, bool capitalizeFirst=false) |
| | Get a human-readable name of a type (mostly used for generic types). Generally equivalent to the name you use in C# code. More...
|
| |
|
| static Assembly[] | AllAssemblies [get] |
| | Returns an array of all loaded assemblies. More...
|
| |
| static IEnumerable< Type > | AllTypes [get] |
| | Returns an enumeration of all loaded types. More...
|
| |
Contains utilities for working with C# reflection types and getting a type by its name.
◆ GetDisplayName()
| static string Infohazard.Core.TypeUtility.GetDisplayName |
( |
this Type |
type, |
|
|
bool |
includeNamespace = false, |
|
|
bool |
capitalizeFirst = false |
|
) |
| |
|
static |
Get a human-readable name of a type (mostly used for generic types). Generally equivalent to the name you use in C# code.
- Parameters
-
| type | The type. |
| includeNamespace | Whether to include namespaces in the result. |
| capitalizeFirst | If true, force the first character to a capital. |
- Returns
- A human-readable name of the type.
◆ GetType()
| static Type Infohazard.Core.TypeUtility.GetType |
( |
string |
fullName | ) |
|
|
static |
Get a type given its full name (including namespace).
- Parameters
-
| fullName | Name of the type including namespace. |
- Returns
- The found type, or null.
◆ AllAssemblies
| Assembly [] Infohazard.Core.TypeUtility.AllAssemblies |
|
staticget |
Returns an array of all loaded assemblies.
◆ AllTypes
| IEnumerable<Type> Infohazard.Core.TypeUtility.AllTypes |
|
staticget |
Returns an enumeration of all loaded types.
The documentation for this class was generated from the following file:
- Runtime/Utility/TypeUtility.cs