Tag Archives: initializer

Collection Initializers in .NET

By | March 25, 2011

Many of you have used property initializers in your code. Object initializers and property initializers are common operations of every program. But do you know, .NET supports Collection initilization directly for all IEnumerable objects ? In this post lets take a brief introduction of Collection Initializers in .NET. Suppose you want to create an array which holds some… Read More »