C# Collection Initializers enable you to add items in the collection at the time of instantiation of the collection. Collection…
Object Initializer, a new technique to initialize an object of a class or collection, was introduced in the .NET 3.5…