IMathLinkGetArray(Type, Int32, String) Method
Reads an array and records information about the heads at each level.
Namespace: Wolfram.NETLinkAssembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
Array GetArray(
Type leafType,
int depth,
out string[] heads
)
Function GetArray (
leafType As Type,
depth As Integer,
<OutAttribute> ByRef heads As String()
) As Array
Array^ GetArray(
Type^ leafType,
int depth,
[OutAttribute] array<String^>^% heads
)
abstract GetArray :
leafType : Type *
depth : int *
heads : string[] byref -> Array
- leafType Type
- The type of the leaf elements of the returned array.
- depth Int32
- The requested depth.
- heads String
- Gets the heads at each level.
Array
This method does not enforce a requirement that the heads be identical across a level. If the expression looks
like {foo[1, 2], bar[3, 4]} then the heads array would become {"List", "foo"}, ignoring the
fact that foo was not the head of every subexpression at level 1. In other words, if heads[i] is "foo", then it
is only guaranteed that the first expression at level i had head foo, not that all of them did.
If you want to be absolutely sure about the heads of every subpart, read the expression as an Expr and use the
Expr methods to inspect it.
MathLinkException | If the waiting data cannot be read in this format, or on any other MathLink error. |