Type utility class
More...
| static bool ContainsGenericParameters |
( |
Type |
type | ) |
|
|
static |
Returns whether or not it contains a generic type parameter.
- Parameters
-
- 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
-
- Returns
- Base type
| static Type [] GetGenericArguments |
( |
Type |
type | ) |
|
|
static |
Return an array of generic type arguments.
- Parameters
-
- Returns
- An array of generic type arguments
| static MemberInfo GetMemberInfo |
( |
Type |
type | ) |
|
|
static |
Get MemberInfo
- Parameters
-
- Returns
- MemberInfo
| static string GetSlotTypeName |
( |
Type |
type | ) |
|
|
static |
Return type name (for data slot)
- Parameters
-
- Returns
- Type name
| static string GetTypeName |
( |
Type |
type | ) |
|
|
static |
Returns the name of the type.
- Parameters
-
- Returns
- 型の名前
| static bool IsAbstract |
( |
Type |
type | ) |
|
|
static |
Returns whether or not it is an abstract type.
- Parameters
-
- 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
-
- Returns
- Returns true if it is a class type.
| static bool IsEnum |
( |
Type |
type | ) |
|
|
static |
Returns whether or not it is an enumeration.
- Parameters
-
- 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
-
- Returns
- ジェネリック型であればtrueを返す
| static bool IsPrimitive |
( |
Type |
type | ) |
|
|
static |
Returns whether or not it is a primitive type.
- Parameters
-
- Returns
- Returns true if it is a primitive type.
| static bool IsSerializable |
( |
Type |
type | ) |
|
|
static |
Returns whether it is serializable.
- Parameters
-
- 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
-
- Returns
- Serializable string