Pattern matching, introduced in C# 9, is a hell of a beast and does more than you might think. In the code below you see two times the same signature but the outcome is different. So it is save to pass in null without getting any NullPointerException.
1 Comment
Sort: