Which is faster; using event.Invoke(args), or just calling event(args). What\'s the difference? Is one faster or slower than the other; or is it ju
Since the introduction of null-conditionals in C# 6.0, Invoke can be used to simplify thread-safe null-checking of delegates. Where you would previously have to do something like
var handler = event;
if (handler != null)
handler(args);
the combination of ?. and Invoke allows you to simply write
event?.Invoke(args)