|Initiate asynchronous .NET delegate call|
|Retrieve result of asynchronous call initiated by .NET System.Delegate BeginInvoke method|
|Convenience function for static .NET System.Delegate Combine method|
|Convenience function for static .NET System.Delegate Remove method|
|Convenience function for static .NET System.Delegate RemoveAll method|
These examples use the
addlistener function to handle .NET events
with MATLAB® callbacks.
This example shows you how to use a delegate in MATLAB.
The following C# class defines the methods
which have signatures matching the
For a C# delegate defined as:
MATLAB provides the instance method
Combine, that lets you combine a series of delegates into a single delegate.
Use events and listeners to send and respond to messages.
In the .NET Framework, a delegate is a type that defines a method signature.
The MATLAB rules for mapping
for delegates are the same as for methods.
It is possible to call a synchronous method asynchronously in MATLAB.