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)
阅读时间1 分钟最后更新于 24 天前
Definition
- Type: Class
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
public static class TypeTraits<T>
Static Properties
Property | Description |
|---|---|
| CanBeNull | Gets a value indicating whether |
| IsAbstract | Gets a value indicating whether |
| IsAbstractOrInterface | Gets a value indicating whether |
| IsArray | Gets a value indicating whether |
| IsContainer | Gets a value indicating whether |
| IsEnum | Gets a value indicating whether |
| IsEnumFlags | Gets a value indicating whether |
| IsInterface | Gets a value indicating whether |
| IsLazyLoadReference | Gets a value indicating whether |
| IsMultidimensionalArray | Gets a value indicating whether |
| IsNullable | Gets a value indicating whether |
| IsObject | Gets a value indicating whether |
| IsPrimitive | Gets a value indicating whether |
| IsPrimitiveOrString | Gets a value indicating whether |
| IsString | Gets a value indicating whether |
| IsUnityObject | Gets a value indicating whether |
| IsValueType | Gets a value indicating whether |