class TypeDescription
Describes a type. We use this class to wrap and return System.Type's that are safe to interact with. Returned by .
public Type TargetType { get; }
The type this class describes.
public TypeDescription BaseType { get; }
The base type. This can return null if the type isn't in the type library!
public bool IsValid { get; }
Whether the class is valid or not, i.e. whether the type still exists.
public MemberDescription[] Members { get; }
All members (methods, properties, etc) of this type.
public MemberDescription[] DeclaredMembers { get; }
Members (methods, properties, etc) declared by exactly this type, and not inherited.
public MethodDescription[] Methods { get; }
All methods of this type.
public PropertyDescription[] Properties { get; }
All properties of this type.
public FieldDescription[] Fields { get; }
All fields on this type.
public bool IsInterface { get; }
True if the target type is an interface
public bool IsEnum { get; }
True if the target type is an enum
public bool IsStatic { get; }
True if the target type is static
public bool IsClass { get; }
True if the target type is a class
public bool IsValueType { get; }
True if the target type is a value
public bool IsAbstract { get; }
Gets a value indicating whether the System.Type is abstract and must be overridden.
public string Name { get; }
Name of this type.
public string Namespace { get; }
Namespace of this type.
public string FullName { get; }
Full name of this type.
public string Title { get; }
🤡 Doc inheritance is not yet supported.
No summary.
public string Description { get; }
🤡 Doc inheritance is not yet supported.
No summary.
public string Icon { get; }
🤡 Doc inheritance is not yet supported.
No summary.
public string Group { get; }
🤡 Doc inheritance is not yet supported.
No summary.
public int Order { get; }
🤡 Doc inheritance is not yet supported.
No summary.
public string[] Tags { get; }
Tags are set via the [Tag] attribute
public string[] Aliases { get; }
🤡 Doc inheritance is not yet supported.
No summary.
public int Identity { get; }
An integer that represents this type. Based off the class name.
public string ClassName { get; }
A string representing this class name. Historically this was provided by [Library( classname )]. If no special name is provided, this will be type.Name.
public int SourceLine { get; }
The line number of this member
public string SourceFile { get; }
The file containing this member
public bool IsNamed( string name )
Returns true if this is named the passed name, either through classname, target class name or an alias
public bool HasTag( string tag )
True if we have this tag.
public PropertyDescription GetProperty( string name )
Get property by name
public object GetValue( object instance, string name )
Get value by field or property name
public bool SetValue( object instance, string name, object value )
Get value by field or property name
public MethodDescription GetMethod( string name )
Get a method by name (will not find static methods)
public bool IsGenericType { get; }
True if we're a generic type
public Type[] GenericArguments { get; }
If we're a generic type this will return our generic parameters.
public Type[] Interfaces { get; }
If we implement any interfaces they will be here
public Type MakeGenericType( Type[] typeArgs )
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.
public IEnumerable<T> GetAttributes( bool inherited = False )
😔 No documentation found.
public T GetAttribute( bool inherited = False )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public T Create( object[] args = null )
😔 No documentation found.
public T CreateGeneric( Type[] typeArgs = null, object[] args = null )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public bool HasAttribute( bool inherited = True )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.