Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Posted
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.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...