Parameters

leafType

The type of the leaf elements of the returned array.

depth

The requested depth.

Remarks

The information about the heads is lost; if you need this information you can use the alternative overload GetArray(int type, int depth, out string[] heads), or read the expression as an Expr and examine it using the Expr methods.