Gives the type of the next element in the expression currently being read. Overrides the IMathLink method by allowing the extra return type ExpressionType.Object.
ExpressionType.Object is returned whenever a NETObject expression, or the symbol Null, is waiting on the link. Otherwise this method behaves just like the version in the IMathLink interface.
To check the type of a partially read element without advancing to the next element, use GetExpressionType.
Exception Type | Condition |
---|---|
MathLinkException | On any MathLink error. |
IKernelLink Interface | Wolfram.NETLink Namespace | GetExpressionType | EnableObjectReferences | GetObject