Describes a type. We use this class to wrap and return
.
Aliases |
|
BaseType |
The base type. This can return null if the type isn't in the type library! |
ClassName |
A string representing this class name. Historically this was provided by [Library( classname )].
If no special name is provided, this will be type.Name. |
DeclaredMembers |
Members (methods, properties, etc) declared by exactly this type, and not inherited. |
Description |
|
Fields |
All fields on this type. |
FullName |
Full name of this type. |
GenericArguments |
If we're a generic type this will return our generic parameters. |
Group |
|
Icon |
|
Identity |
An integer that represents this type. Based off the class name. |
Interfaces |
If we implement any interfaces they will be here |
IsAbstract |
Gets a value indicating whether the System.Type is abstract and must be overridden. |
IsClass |
True if the target type is a class |
IsEnum |
True if the target type is an enum |
IsGenericType |
True if we're a generic type |
IsInterface |
True if the target type is an interface |
IsStatic |
True if the target type is static |
IsValid |
Whether the class is valid or not, i.e. whether the type still exists. |
IsValueType |
True if the target type is a value |
Members |
All members (methods, properties, etc) of this type. |
Methods |
All methods of this type. |
Name |
Name of this type. |
Namespace |
Namespace of this type. |
Order |
|
Properties |
All properties of this type. |
SourceFile |
The file containing this member |
SourceLine |
The line number of this member |
Tags |
Tags are set via the [Tag] attribute |
TargetType |
The type this class describes. |
Title |
|
Create |
Create an instance of this class, return it as a T.
If it can't be cast to a T we won't create it and will return null. |
CreateGeneric |
Create an instance of this class using generic arguments
We're going to assume you know what you're doing here and let it throw any exceptions it wants. |
GetAttribute |
Returns the first attribute of given type, if any are present. |
GetAttributes |
Returns all attributes of given type, if any are present. |
GetMethod |
Get a method by name (will not find static methods) |
GetProperty |
Get property by name |
GetValue |
Get value by field or property name |
HasAttribute |
Returns true if the class has this attribute |
HasTag |
True if we have this tag. |
IsNamed |
Returns true if this is named the passed name, either through classname, target class name or an alias |
MakeGenericType |
For generic type definitions, create a type by substituting the given types for each type parameter.
We're going to assume you know what you're doing here and let it throw any exceptions it wants. |
SetValue |
Get value by field or property name |