A multicast delegate is a delegate that points to several methods. Multicast delegation is a mechanism that provides functionality to execute more than one method: there is a list of delegates maintained internally, and when the multicast delegate is invoked, the list of delegates is executed.
Questions tagged [multicastdelegate]
33 questions
0
votes
0 answers
Adding a multicast delegate to a VB.NET program
For an assignment I was supposed to write a program that used delegates to do all four basic math functions at once. Which I did. Here is the code from that.
Module Module1
Public Delegate Sub math(ByVal A As Integer, ByVal B As Integer)
…

Tim The Learner
- 75
- 2
- 8
0
votes
2 answers
Calling delegates later aka. delegate queue
so I'm pretty new to c# and I've came around this problem:
I have some methods that invoke different delegates (with potentially different argument types). However these delegates shouldn't be called right away. If the main Thread is running a…

Yamcha
- 1,264
- 18
- 24
-3
votes
1 answer
Multicast Delegates With Asynchronous Call
Here is my Main class code:
DelegateClass dc = new DelegateClass();
MyDelegate mydelegate = new MyDelegate(dc.WriteName);
ParameterLess paramless = new ParameterLess(dc.ShowName);
IAsyncResult mydelresult = mydelegate.BeginInvoke("Some…

Muhammad Ali
- 853
- 1
- 10
- 18