class TypeDescription

book_4_sparkGenerated
code_blocksInput

Description

Describes a type. We use this class to wrap and return System.Type's that are safe to interact with.

Returned by Sandbox.Internal.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
IsNamedChecks 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.
HasAttributeDetermines 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 from an instance by name.
SetValueSets the value of a property on an instance by name.
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.
MakeGenericTypeMakes a generic type with the specified type arguments.