C#: Array and collection intializers

I was recently asked few questions about array and collection intializers in C#. Because it may be useful for others as well, I decided to write the answer down in this form. All information below is valid for C# in version 3.0 or higher. Arrays A single-dimensional array is normally declared and initialized this way: string[] …

Continue reading ‘C#: Array and collection intializers’ »