Expr(Object) Constructor

Creates an Expr whose value is given by the supplied object.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public Expr(
	Object obj
)

Parameters

obj  Object
The object whose value will be used for the Expr.

Remarks

The object can be a boxed primitive (e.g, Int32, Double, Boolean etc.) a String, an Expr, or an array.

If it is an array, it must be a 1- or 2-dimensional array of primitive types or strings. It cannot be jagged (that is, it must be typed like int[,], not int[][]). The data in the array is copied into the Expr, so future changes to the original array will not be reflected in the Expr.

Exceptions

ArgumentExceptionIf the object is of a type that cannot be handled.

See Also