foreach (Parameter para in eCoreWall.Parameters) { results += Util.GetParameterInformation(para, m_doc); }
Each time I pull the parameters, they are listed in a different order. Anyone know why?
Here's an abbreviated example:
1st Time-
Area: 27.72 SF
Length: 59.00
Function: Exterior
2nd Time-
Length: 59.00
Area: 27.72 SF
Function: Exterior
Because it's executing an IEnumerable; it does not contain an order.
ReplyDeleteThe same behaviour appears for other enumerables and is by design. If you don't want that simply don't use an enumerable, but an array.