❔ How to calculate event expression?
like
So what is result like?
a,b,c,d are all events, and each of them contains more than one method.So what is result like?
Compile: 697.949ms | Execution: 124.181ms | React with ❌ to remove this embed.
/close c#
delegate void F();
event F a, b, c, d;a
d
d
aa + b - c + d - c + d - b + a+ a
+ b
- c (doesn't do anything)
+ d
- c (doesn't do anything)
+ d
- b (removes b)
+ a+ b- b- c+ a
+ d
+ d
+ adelegate void F();
F a = () => Console.WriteLine("a");
F b = () => Console.WriteLine("b");
F c = () => Console.WriteLine("c");
F d = () => Console.WriteLine("d");
var result = a + b - c + d - c + d - b + a;
result();