"Switch Expressions with Tuples"

var salary = user switch {
	(10, true) => 45_000,
	(9, true) => 40_000,
	(8, true) => 35_000,
	_ => 30,000
};


Code snippet taken from "Two Decades of C#: A Reference - C# 8".