Class TypeTraits<T>
Helper class to avoid paying the cost of runtime type lookups.
This is also used to abstract underlying type info in the runtime (e.g. RuntimeTypeHandle vs StaticTypeReg)
Inherited Members
Namespace: Unity.Properties
Syntax
public static class TypeTraits<T>
Type Parameters
Name | Description |
---|---|
T | The type. |
Properties
CanBeNull
Gets a value indicating whether
Declaration
public static bool CanBeNull { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsAbstract
Gets a value indicating whether
Declaration
public static bool IsAbstract { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsAbstractOrInterface
Gets a value indicating whether
Declaration
public static bool IsAbstractOrInterface { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsArray
Gets a value indicating whether
Declaration
public static bool IsArray { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsContainer
Gets a value indicating whether
Declaration
public static bool IsContainer { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsEnum
Gets a value indicating whether
Declaration
public static bool IsEnum { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsEnumFlags
Gets a value indicating whether
Declaration
public static bool IsEnumFlags { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsInterface
Gets a value indicating whether
Declaration
public static bool IsInterface { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsLazyLoadReference
Gets a value indicating whether
Declaration
public static bool IsLazyLoadReference { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsMultidimensionalArray
Gets a value indicating whether
Declaration
public static bool IsMultidimensionalArray { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsNullable
Gets a value indicating whether
Declaration
public static bool IsNullable { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsObject
Gets a value indicating whether
Declaration
public static bool IsObject { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsPrimitive
Gets a value indicating whether
Declaration
public static bool IsPrimitive { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsPrimitiveOrString
Gets a value indicating whether
Declaration
public static bool IsPrimitiveOrString { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsString
Gets a value indicating whether
Declaration
public static bool IsString { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsUnityObject
Gets a value indicating whether
Declaration
public static bool IsUnityObject { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsValueType
Gets a value indicating whether
Declaration
public static bool IsValueType { get; }
Property Value
Type | Description |
---|---|
Boolean |