Summary

Describes a type. We use this class to wrap and return <see cref="T:System.Type">System.Type</see>'s that are safe to interact with. Returned by <see cref="T:Sandbox.Internal.TypeLibrary" />.

Properties

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

Methods

Create
CreateGeneric
GetAttribute
GetAttributes
GetMethod
GetProperty
GetValue
HasAttribute
HasTag
IsNamed
MakeGenericType
SetValue
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.