3 ms·
That's already the case for the null coalescing operator when it ends in a method call: the method call is skipped if the base is null. For instance, we can inv
by electroly 1y ago
That's already the case for the null coalescing operator when it ends in a method call: the method call is skipped if the base is null. For instance, we can invoke event handlers with "myEvent?.Invoke(...);" and the call will be skipped if there are no event handlers registered, and this is the canonical way to do it.