System::SmartPtr::Is 方法

SmartPtr::Is method

检查指向的对象是否为特定类型或其子类型。遵循 C# 的 ‘is’ 语义。

bool System::SmartPtr<T>::Is(const System::TypeInfo &target) const
参数类型描述
targetconst System::TypeInfo&指定要检查的目标类型。

ReturnValue

如果 C# “is” 风格的检查为真则返回 true,否则返回 false。

备注

实现。

另见