Commissioned example-learning teacher Liu video
1: Unicast delegation (synchronous call)
operation result:
2: Multicast delegation (synchronous call)
operation result is the same as unicast delegation
3: Direct synchronous call
Operation result:
4: Indirect synchronous call (unicast):
Multicast mode:
action1 += action2;
action2 += action3;
action1.Invoke();
The running result is the same as the direct synchronous call
5: Delegate implicit asynchronous call
Operation result:
6: Delegate display asynchronous call
Operation result:
7: Task asynchronous call
Operation result: