All possible array initialization syntaxes

These are the current declaration and initialization methods for a simple array. Note that other techniques of obtaining arrays exist, such as the Linq ToArray() extensions on IEnumerable<T>. Also note that in the declarations above, the first two could replace the string[] on the left with var (C# 3+), as the information on the right is enough to infer the proper type. … Read more