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
2.1m questions
2.1m answers
60 comments
57.0k users