IMathLinkPut(Object) Method

Sends an object, including strings and arrays.

Definition

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

Parameters

obj  Object
The object to send.

Remarks

Only a limited set of .NET objects can be usefully sent across a link with this method. These are objects whose "values" have a meaningful representation in the Wolfram Language:
TypeSent As:
nullthe symbol Null
stringWolfram Language string
arraylist of the appropriate dimensions
boxed primitive (Int32, Boolean, etc.)the unboxed value
Exprexpression
Complex classComplex number
All other objects have no meaningful "value" representation in the Wolfram Language. For these objects, the relatively useless obj.ToString() is sent. The version of Put in the IKernelLink interface, which is the interface most programmers will be using, will put objects "by reference" if they have no meaningful value representation in the Wolfram Language, meaning that they show up as NETObject expressions.

Exceptions

MathLinkExceptionOn any MathLink error.

See Also