System::IsTuple 方法

System::IsTuple method

检查对象是否为元组(实现 ITuple 接口)。在位置模式实现中使用。

bool System::IsTuple(const SharedPtr<Object> &object, int32_t length)
参数类型描述
对象const SharedPtr<Object>&要检查的对象。
长度int32_t预期的元组长度

ReturnValue

对象是否为元组且其长度等于预期值

另见