System::ObjectType::GetType 方法

ObjectType::GetType() method

实现 typeof() 翻译。针对原始类型的重载。

template<typename T> static std::enable_if<std::is_fundamental<T>::value &&!std::is_enum<T>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType()
参数描述
T原始类型。

ReturnValue

对描述指定类型的 TypeInfo 结构的 const 引用。

另见

ObjectType::GetType() method

实现 typeof() 翻译。针对枚举类型的重载。

template<typename T> static std::enable_if<std::is_enum<T>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType()
参数描述
T原始类型。

ReturnValue

对描述指定类型的 TypeInfo 结构的 const 引用。

另见

ObjectType::GetType() method

实现 typeof() 翻译。针对结构体和指针的重载。

template<typename T> static std::enable_if<(!std::is_fundamental<T>::value &&!std::is_enum<T>::value &&!IsBoxable<T>::value)||IsExceptionWrapper<T>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType()
参数描述
T原始类型。

ReturnValue

对描述指定结构的 TypeInfo 结构的 const 引用。

另见

ObjectType::GetType() method

实现 typeof() 的翻译。针对 Nullable 的重载。

template<typename T> static std::enable_if<IsNullable<T>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType()
参数描述
TNullable 类型。

ReturnValue

对描述指定结构的 TypeInfo 结构的 const 引用。

另见

ObjectType::GetType() method

实现 typeof() 翻译。针对 MutlicastDelegate 的重载。

template<typename T> static std::enable_if<detail::is_a<T, MulticastDelegate>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType()
参数描述
TMutlicastDelegate 类型。

ReturnValue

对描述指定结构的 TypeInfo 结构的 const 引用。

另见

ObjectType::GetType() method

实现 typeof() 翻译。针对结构体和指针的重载。

template<typename T> static std::enable_if<!std::is_fundamental<T>::value &&!std::is_enum<T>::value &&IsBoxable<T>::value &&!detail::is_a<T, MulticastDelegate>::value &&!IsNullable<T>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType()
参数描述
T原始类型。

ReturnValue

对描述指定结构的 TypeInfo 结构的 const 引用,或在针对 SmartPtr 时的指向类型。

另见

ObjectType::GetType() method

实现 typeof() 翻译。针对 uint8_t 的重载。

const System::TypeInfo & System::ObjectType::GetType()

另见

ObjectType::GetType() method

实现 typeof() 的翻译。针对 char16_t 的重载。

const System::TypeInfo & System::ObjectType::GetType()

另见

ObjectType::GetType() method

实现 typeof() 的翻译。针对 int32_t 的重载。

const System::TypeInfo & System::ObjectType::GetType()

另见

ObjectType::GetType() method

实现 typeof() 的翻译。针对 int64_t 的重载。

const System::TypeInfo & System::ObjectType::GetType()

另见

ObjectType::GetType() method

实现 typeof() 的翻译。针对 bool 的重载。

const System::TypeInfo & System::ObjectType::GetType()

另见

ObjectType::GetType() method

实现 typeof() 的翻译。针对 Void 的重载。

const System::TypeInfo & System::ObjectType::GetType()

另见

ObjectType::GetType(const String&) method

实现 typeof() 翻译。针对字符串类型的重载。

static const System::TypeInfo & System::ObjectType::GetType(const String &obj)
参数描述
T原始类型。

ReturnValue

对描述 String 类型的 TypeInfo 结构的 const 引用。

另见

ObjectType::GetType(const T&) method

实现 typeof() 翻译。针对智能指针的重载。

template<typename T> static std::enable_if<IsSmartPtr<T>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType(const T &obj)
参数描述
T指针对象类型。
参数类型描述
objconst T&用于获取 TypeInfoObject

ReturnValue

对描述传入对象最终类的 TypeInfo 结构的 const 引用。

另见

ObjectType::GetType(const T&) method

实现 typeof() 翻译。针对结构体的重载。

template<typename T> static std::enable_if<!IsExceptionWrapper<T>::value &&!IsSmartPtr<T>::value &&!std::is_fundamental<T>::value &&!std::is_enum<T>::value &&!IsNullable<T>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType(const T &obj)
参数描述
T结构体类型。
参数类型描述
objconst T&用于获取 TypeInfoObject

ReturnValue

对描述传入对象最终类的 TypeInfo 结构的 const 引用。

另见

ObjectType::GetType(const T&) method

实现 typeof() 翻译。针对异常的重载。

template<typename T> static std::enable_if<IsExceptionWrapper<T>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType(const T &obj)
参数描述
TException 类型。
参数类型描述
objconst T&用于获取 TypeInfoObject

ReturnValue

对描述传入对象最终类的 TypeInfo 结构的 const 引用。

另见

ObjectType::GetType(const T) method

实现 typeof() 翻译。针对原始类型的重载。

template<typename T> static std::enable_if<std::is_fundamental<T>::value||std::is_enum<T>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType(const T obj)
参数描述
T原始类型。
参数类型描述
objconst TIGNORED

ReturnValue

对描述传入对象类型的 TypeInfo 结构的 const 引用。

另见

ObjectType::GetType(const T) method

实现 typeof() 的翻译。针对 Nullable 类型的重载。

template<typename T> static std::enable_if<IsNullable<T>::value, constSystem::TypeInfo &>::type System::ObjectType::GetType(const T obj)
参数描述
TNullable 类型。
参数类型描述
objconst TIGNORED

ReturnValue

对描述传入对象类型的 TypeInfo 结构的 const 引用。

另见