cugone Posted September 25, 2008 Posted September 25, 2008 I've a custom class in a form that requires multiple instances of this class to be created and stored for later use, my question is: Which is more efficient? A strongly-typed List(Of T) of the objects or an array of said objects? Quote
Administrators PlausiblyDamp Posted September 25, 2008 Administrators Posted September 25, 2008 It really depends on exactly what you are doing in regards to performance. Personally I would tend towards generic collections simply because of the improved functionality they offer and the more OO way of dealing with things they provide. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Nate Bross Posted September 25, 2008 Posted September 25, 2008 I would go with the List(of T) because it is easier to work with. In terms of performance it depends what you are doing. Generally IMO it's not worth the slight gain in most cases. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.