Need you help.
I want to use List and I don"t know how I make definition and fill it
Thanks
Sergey
polo_coins
-2
Junior Poster in Training
Recommended Answers
Jump to PostArrayList rockstars = new ArrayList();
List<String> rockstars = new List<String>();
These two lines are the "same".
In both cases you can say rockstars.Add("Elvis"); etc.
The generic List is to be preferred, it is stronger typed for one thing.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.