Fill a Multi-Dimensional Array

added by KodefuGuru
10/26/2010 1:37:06 PM

3 Kicks, 208 Views

It is rare that I need to work directly with arrays in today’s world of LINQ to Objects. However, yesterday evening I found myself with the need to fill the elements of a multidimensional array. Here's an extension method to make it easy for you regardless of the number of dimensions.