MathDelegateCreateDelegate(Type, String, IKernelLink, Boolean, Boolean) Method

Use this overload in cases where you need to specify advanced behavior.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public static Delegate CreateDelegate(
	Type delegateType,
	string mFunc,
	IKernelLink ml,
	bool callsUnshare,
	bool wrapInNETBlock
)

Parameters

delegateType  Type
The type of the delegate to create.
mFunc  String
The Wolfram Language function to evaluate.
ml  IKernelLink
The link to use.
callsUnshare  Boolean
Whether the Wolfram Language function calls UnshareKernel or UnshareFrontEnd.
wrapInNETBlock  Boolean
Whether to automatically wrap the call to Wolfram Language in NETBlock.

Return Value

Delegate
The delegate object.

Remarks

Set callsUnhsare to true if your Wolfram Language function calls UnshareKernel or UnshareFrontEnd. Set wrapInNETBlock to false if you do not want the call to be automatically wrapped in NETBlock.

See Also