class TypeDescription

robot_2Generated
code_blocksInput

Description

The TypeDescription class in the Sandbox namespace provides a comprehensive description of a type. It acts as a wrapper around System.Type to ensure safe interaction with types. This class is typically returned by the TypeLibrary.

Members

Properties

Member NameSummary
TargetTypeThe type this class describes.
BaseTypeThe base type. This can return null if the type isn't in the type library!
IsValidWhether the class is valid or not, i.e. whether the type still exists.
MembersAll members (methods, properties, etc) of this type.
DeclaredMembersMembers (methods, properties, etc) declared by exactly this type, and not inherited.
MethodsAll methods of this type.
PropertiesAll properties of this type.
FieldsAll fields on this type.
IsInterfaceTrue if the target type is an interface.
IsEnumTrue if the target type is an enum.
IsStaticTrue if the target type is static.
IsClassTrue if the target type is a class.
IsValueTypeTrue if the target type is a value.
IsAbstractGets a value indicating whether the System.Type is abstract and must be overridden.
NameName of this type.
NamespaceNamespace of this type.
FullNameFull name of this type.
Title
Description
Icon
Group
Order
TagsTags are set via the [Tag] attribute.
Aliases
IdentityAn integer that represents this type. Based off the class name.
ClassNameA string representing this class name. Historically this was provided by [Library( classname )]. If no special name is provided, this will be type.Name.
SourceLineThe line number of this member.
SourceFileThe file containing this member.
IsGenericTypeTrue if we're a generic type.
GenericArgumentsIf we're a generic type this will return our generic parameters.
InterfacesIf we implement any interfaces they will be here.

Methods

Member NameSummary
IsNamedDetermines if the type has the specified name.
GetAttributeGets a specific attribute of the type, optionally considering inherited attributes.
GetAttributesGets all attributes of the type, optionally considering inherited attributes.
HasAttributeChecks if the type has a specific attribute, optionally considering inherited attributes.
HasTagChecks if the type has a specific tag.
GetPropertyGets a property description by name.
GetValueGets the value of a property by name from an instance.
SetValueSets the value of a property by name on an instance.
GetMethodGets a method description by name.
CreateCreates an instance of the type with the specified arguments.
CreateGenericCreates a generic instance of the type with the specified type arguments and constructor arguments.
MakeGenericTypeCreates a generic type with the specified type arguments.