I was shocked to find out today that C# does not support dynamic sized arrays. How then does a VB.NET developer used to using ReDim Preserve deal with this in C#?
At the beginning of the function I am not sure of the upper bound of the array. This depends on the rows returned from the database.
Use ArrayLists or Generics instead
1.4m articles
1.4m replys
5 comments
57.0k users