Expr(ExpressionType, String) Constructor

Creates an Expr representing a Wolfram Language Integer, Real, String, or Symbol whose value is given by the supplied string (for example "2", "3.14", "Plus", or "True").

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public Expr(
	ExpressionType type,
	string val
)

Parameters

type  ExpressionType
The type of Expr to create.
val  String
The Expr's value.

Remarks

Creates only the following types: ExpressionType.Integer, ExpressionType.Real, ExpressionType.String, ExpressionType.Symbol, ExpressionType.Boolean.

Exceptions

ArgumentExceptionIf an unsupported type is specified.

See Also