Arbor 3: FSM & BT Graph Editor
3.7.8
|
Type utility class More...
Static Public Member Functions | |
static string | GetTypeName (Type type) |
Returns the name of the type. More... | |
static string | GetSlotTypeName (Type type) |
Return type name (for data slot) More... | |
static string | TidyAssemblyTypeName (Type type) |
Convert Type to a serializable string. More... | |
static Type | GetAssemblyType (string assemblyTypeName) |
Get System.Type from string. More... | |
static Type[] | GetTypesFromAssembly (Assembly assembly) |
Returns the type defined in Assembly. More... | |
static Assembly | GetAssembly (Type type) |
Gets the Assembly in which the type is declared. More... | |
static Type | GetBaseType (Type type) |
Return base type More... | |
static bool | IsGenericType (Type type) |
Returns whether type is a generic type. More... | |
static bool | IsGenericTypeDefinition (Type type) |
Returns whether it is a generic type definition. More... | |
static Type[] | GetGenericArguments (Type type) |
Return an array of generic type arguments. More... | |
static bool | IsGeneric (Type type, Type genericTypeDefinition) |
Returns whether it is a generic type constructed from the specified generic type definition. More... | |
static bool | IsPrimitive (Type type) |
Returns whether or not it is a primitive type. More... | |
static bool | IsEnum (Type type) |
Returns whether or not it is an enumeration. More... | |
static bool | IsClass (Type type) |
Returns whether or not it is a class type. More... | |
static bool | IsInterface (Type type) |
Returns whether or not it is a interface type. More... | |
static bool | IsValueType (Type type) |
Returns whether or not it is a value type. More... | |
static bool | IsSerializable (Type type) |
Returns whether it is serializable. More... | |
static bool | IsAbstract (Type type) |
Returns whether or not it is an abstract type. More... | |
static bool | ContainsGenericParameters (Type type) |
Returns whether or not it contains a generic type parameter. More... | |
static MemberInfo | GetMemberInfo (Type type) |
Get MemberInfo More... | |
static bool | IsSubclassOf (Type type, Type c) |
Determine whether it is a derived type or not. More... | |
static bool | IsAssignableFrom (Type type, Type c) |
It is judged whether or not it is an assignable type. More... | |
static FieldInfo[] | GetFields (Type type, BindingFlags bindingAttr) |
Get type fields. More... | |
static bool | IsSealed (Type type) |
Gets whether the class is declared sealed. More... | |
static bool | IsStatic (Type type) |
Get whether it is a static class. More... | |
static AssemblyName[] | GetReferencedAssemblies (Assembly assembly) |
Get Referenced Assemblies. More... | |
static bool | IsReferenceable (Assembly assembly, Assembly reference) |
Determine if the Assembly is referenced. More... | |
static bool | IsReferenceableType (Assembly assembly, Type type) |
Determine if the Assembly can reference the Type. More... | |
static bool | IsDynamic (Assembly assembly) |
Determine if the Assembly was dynamically generated. More... | |
static bool | IsRuntimeAssembly (Assembly assembly) |
Determine if it is a runtime assembly. More... | |
static List< Assembly > | GetRuntimeAssembies () |
Get the runtime assemblies that references the Arbor. More... | |
static List< Type > | GetRuntimeTypes () |
Get the type that can be referenced at runtime. More... | |
static Type | GetTypeRenamedFrom (string typeName) |
Get the type from the type name before renaming. More... | |
static Type | FindType (string typeName) |
Find the type from the type name that does not include the Assembly name. More... | |
Type utility class
|
static |
Returns whether or not it contains a generic type parameter.
type | Type |
|
static |
Find the type from the type name that does not include the Assembly name.
typeName | Type name without Assembly name |
|
static |
Gets the Assembly in which the type is declared.
type | Type |
|
static |
Get System.Type from string.
assemblyTypeName | Type name |
|
static |
Return base type
type | Type |
|
static |
Get type fields.
type | Type |
bindingAttr | Flag that controls how the field is searched |
|
static |
Return an array of generic type arguments.
type | Type |
|
static |
Get MemberInfo
type | Type |
|
static |
Get Referenced Assemblies.
assembly | Assembly |
|
static |
Get the runtime assemblies that references the Arbor.
|
static |
Get the type that can be referenced at runtime.
|
static |
Return type name (for data slot)
type | Type |
|
static |
Returns the name of the type.
type | Type |
|
static |
Get the type from the type name before renaming.
typeName | Type name before renaming |
|
static |
Returns the type defined in Assembly.
assembly | Assembly |
|
static |
Returns whether or not it is an abstract type.
type | Type |
|
static |
It is judged whether or not it is an assignable type.
type | 型 |
c | Type to be compared |
|
static |
Returns whether or not it is a class type.
type | Type |
|
static |
Determine if the Assembly was dynamically generated.
assembly | Assembly |
|
static |
Returns whether or not it is an enumeration.
type | Type |
|
static |
Returns whether it is a generic type constructed from the specified generic type definition.
type | Type |
genericTypeDefinition | Generic type definition |
|
static |
Returns whether type is a generic type.
type | Type |
|
static |
Returns whether it is a generic type definition.
type | Type |
|
static |
Returns whether or not it is a interface type.
type | Type |
|
static |
Returns whether or not it is a primitive type.
type | Type |
|
static |
Determine if the Assembly is referenced.
assembly | Assembly |
reference | Assembly to determine if it is referenced |
|
static |
Determine if the Assembly can reference the Type.
assembly | Assembly |
type | Type |
|
static |
Determine if it is a runtime assembly.
assembly | Assembly |
When the assembly such as UnityEditor is not referenced, it is set as the runtime assembly.
|
static |
Gets whether the class is declared sealed.
type | Type |
|
static |
Returns whether it is serializable.
type | Type |
|
static |
Get whether it is a static class.
type | Type |
|
static |
Determine whether it is a derived type or not.
type | Type |
c | Type to be compared |
|
static |
Returns whether or not it is a value type.
type | Type |
|
static |
Convert Type to a serializable string.
type | Type value |