IMathLinkGetArgCount Method

Reads the argument count of an expression being read manually.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
int GetArgCount()

Return Value

Int32
The number of arguments of the function.

Remarks

This method can be used after GetNextExpressionType or GetExpressionType returns the value ExpressionType.Function. The argument count is always followed by the head of the expression. The head is followed by the arguments; the argument count tells how many there will be.

Exceptions

MathLinkExceptionOn any MathLink error.

See Also