System::IsTuple 方法

System::IsTuple method

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

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

ReturnValue

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

另见