In C# 3.0, when I pass an array of strings to a method in the manner below, will the order I define them in be retained or are there conditions under which the order can change? Is this documented somewhere that I haven’t seen?
CalculateOmniturePageName(new[] { Model.GetOmnitureDomain(), Model.SectionTitle, Model.Title })
The order is fixed. The first item is index 0, the next is index 1, and so on. It’s defined in the spec, see section 12.6.
The entire (annotated) spec is available in dead-tree form and is a surprising easy and enlightening read.