Sends an object to Mathematica "by reference".
Sends the object as its actual runtime type.
void PutReference(object);
Sends the object cast as a parent type or interface.
void PutReference(object,Type);
Use this method to pass .NET objects to Mathematica so that methods can be invoked directly from Mathematica code as described in Part 1 of the .NET/Link User Guide.
Objects sent to Mathematica using this method arrive as NETObject expressions.
You must call EnableObjectReferences before PutReference will function properly.The Put method (inherited from IMathLink) will also send some objects by reference, but there are three reasons to call PutReference instead:
IKernelLink Interface | Wolfram.NETLink Namespace | EnableObjectReferences | GetObject