"Old vs New Dictionary Initialization"

class User {
	static void Test() {
		var oldWay = new Dictionary<int, string> {
			{ 1, "One" },
			{ 2, "Two" },
			{ 3, "Three" },
			{ 4, "Four" }
		};

		var newWay = new Dictionary<int, string> {
			[1] = "One",
			[2] = "Two",
			[3] = "Three",
			[4] = "Four"
		};
	}
}


Code snippet taken from "Two Decades of C#: A Reference - C# 5 and C# 6".