creates a new instance of the specified .NET delegate type whose action is to call the named Wolfram Language function when triggered.
- To use NETNewDelegate, you first need to load .NET/Link using Needs["NETLink`"].
- The type argument can be a string name, a NETType expression, or a Type object. The func argument can be the name of a function as a symbol or string, or a pure function.
- The supplied function will be called with whatever arguments the delegate type takes.
- NETNewDelegate is a low-level function that is not often used; see AddEventHandler if you want to create a Wolfram Language callback triggered by some user interface action.