IMathLinkPut(Object) Method
Sends an object, including strings and arrays.
Namespace: Wolfram.NETLinkAssembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
Sub Put (
obj As Object
)
abstract Put :
obj : Object -> unit
Parameters
- obj Object
- The object to send.
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:
Type | Sent As: |
---|
null | the symbol Null |
string | Wolfram Language string |
array | list of the appropriate dimensions |
boxed primitive (Int32, Boolean, etc.) | the unboxed value |
Expr | expression |
Complex class | Complex 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.