Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on 

Which collection to use in C#?

Hi there;

I have got a C# application in which I populate my arraylist according to the number of selections in my grid, the issue is that I wonder whether the ArrayList is the optimum solution for this or not. What about other collections? Is there any collection faster to populate than others?

Kind regards.

P.S. My application is working correctly currently. I just want to learn for my other collection options.
C#

Avatar of undefined
Last Comment
jazzIIIlove
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of dj_alik
dj_alik

Use BindingList<T> with grid
Provides a generic collection that supports data binding.
http://msdn.microsoft.com/en-us/library/ms132679.aspx
Avatar of jazzIIIlove
jazzIIIlove
Flag of Sweden image

ASKER

Nice explanation, let's meet up in another question...
C#
C#

C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).

98K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo