IsTuple()

System::IsTuple(const SharedPtr<Object>&, int32_t) function

Checks if object is tuple (implements ITuple interface). Used in positional pattern implementation.

bool System::IsTuple(const SharedPtr<Object> &object, int32_t length)

Arguments

ParameterTypeDescription
objectconst SharedPtr<Object>&object to check.
lengthint32_texpected tuple length

Return Value

is object is tuple and its length equal to expected one

See Also