Introduction
Collection initialization syntax helps you quickly create and fill a collection with items in one simple step.
When you want to create a list of names to store in memory.
When you need to prepare a set of values before saving them to a database.
When you want to test database queries with sample data.
When you want to group related items together for easy access.
When you want to avoid writing multiple lines to add items one by one.