Arbor 3: FSM & BT Graph Editor 3.5.3

- Main Page
- Packages
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Static Public Member Functions | List of all members
TypeUtility Class Reference

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 | GetBaseType (Type type)
| Return base type More...
static bool | IsGenericType (Type type)
| Returns whether type is a generic type. 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 | 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...

## Detailed Description

Type utility class

## Member Function Documentation

static bool ContainsGenericParameters | ( | Type | type | ) |
| static

Returns whether or not it contains a generic type parameter.

Parameters

  type | Type

Returns
  Returns true if it contains a generic type parameter.

static Type GetAssemblyType | ( | string | assemblyTypeName | ) |
| static

Get System.Type from string.

Parameters

  assemblyTypeName | Type name

Returns
  System.Type. If assemblyTypeName is empty or null, it returns null.

static Type GetBaseType | ( | Type | type | ) |
| static

Return base type

Parameters

  type | Type

Returns
  Base type

static FieldInfo [] GetFields | ( | Type | type,
|  | BindingFlags | bindingAttr
| ) |  |
| static

Get type fields.

Parameters

  type | Type
  bindingAttr | Flag that controls how the field is searched

Returns
  Array of FieldInfo

static Type [] GetGenericArguments | ( | Type | type | ) |
| static

Return an array of generic type arguments.

Parameters

  type | Type

Returns
  An array of generic type arguments

static MemberInfo GetMemberInfo | ( | Type | type | ) |
| static

Get MemberInfo

Parameters

  type | Type

Returns
  MemberInfo

static string GetSlotTypeName | ( | Type | type | ) |
| static

Return type name (for data slot)

Parameters

  type | Type

Returns
  Type name

static string GetTypeName | ( | Type | type | ) |
| static

Returns the name of the type.

Parameters

  type | Type

Returns
  型の名前

static bool IsAbstract | ( | Type | type | ) |
| static

Returns whether or not it is an abstract type.

Parameters

  type | Type

Returns
  Returns true if it is an abstract type.

static bool IsAssignableFrom | ( | Type | type,
|  | Type | c
| ) |  |
| static

It is judged whether or not it is an assignable type.

Parameters

  type | 型
  c | Type to be compared

Returns
  Returns true if an instance of c can be assigned to an instance of type.

static bool IsClass | ( | Type | type | ) |
| static

Returns whether or not it is a class type.

Parameters

  type | Type

Returns
  Returns true if it is a class type.

static bool IsEnum | ( | Type | type | ) |
| static

Returns whether or not it is an enumeration.

Parameters

  type | Type

Returns
  Return true if it is an enumeration.

static bool IsGeneric | ( | Type | type,
|  | Type | genericTypeDefinition
| ) |  |
| static

Returns whether it is a generic type constructed from the specified generic type definition.

Parameters

  type | Type
  genericTypeDefinition | Generic type definition

Returns
  Return true if type is a generic type constructed from genericTypeDefinition.

static bool IsGenericType | ( | Type | type | ) |
| static

Returns whether type is a generic type.

Parameters

  type | Type

Returns
  ジェネリック型であればtrueを返す

static bool IsPrimitive | ( | Type | type | ) |
| static

Returns whether or not it is a primitive type.

Parameters

  type | Type

Returns
  Returns true if it is a primitive type.

static bool IsSerializable | ( | Type | type | ) |
| static

Returns whether it is serializable.

Parameters

  type | Type

Returns
  Returns true if serializable.

static bool IsSubclassOf | ( | Type | type,
|  | Type | c
| ) |  |
| static

Determine whether it is a derived type or not.

Parameters

  type | Type
  c | Type to be compared

Returns
  Returns true if type is derived from c.

static string TidyAssemblyTypeName | ( | Type | type | ) |
| static

Convert Type to a serializable string.

Parameters

  type | Type value

Returns
  Serializable string