© { JSL }
102
Text Box: Mulitcast delegate
Mulitcast delegate
Folded Corner:
·a void return type delegate...
wcan hold multiple callback in its invocation list
wfirst in, first called
delegate void Pred(string s);
...
class Test
{
           void DoThis(string s) { ... }
    static void ThenThat(string s) { ... }
    void Method(string arg)
    {
        Pred call = null;
        call += new Pred(this.DoThis);
        call += new Pred(Test.ThenThat);
        ...
        call(arg);
    }
}