Sends an object, including strings and arrays. Overrides the IMathLink version to allow you to send objects "by reference" that have no meaningful value representation in Mathematica.
Type | Sent As: |
---|---|
null | the symbol Null |
string | Mathematica string |
array | list of the appropriate dimensions |
boxed primitive (Int32, Boolean, etc.) | the unboxed value |
Expr | expression |
Complex class | Complex number |
all other objects | NETObject expression |
Put sends objects that meaningful "value" representations in Mathematica as their values, and behaves like PutReference for objects that have no meaningful value and therefore must be sent by reference (that is, as NETObject expressions).
You must call EnableObjectReferences before Put will be able to send objects by reference.Exception Type | Condition |
---|---|
MathLinkException | On any MathLink error. |
IKernelLink Interface | Wolfram.NETLink Namespace | EnableObjectReferences | PutReference