Use of value pattern and type pattern described for both switch statement and expression (Introduced in C# 8)