Click here to Skip to main content
15,877,574 members
Home / Discussions / C#
   

C#

 
GeneralAccessing members of a class in an ArrayList Pin
hpjchobbes6-Feb-08 8:59
hpjchobbes6-Feb-08 8:59 
GeneralRe: Accessing members of a class in an ArrayList Pin
led mike6-Feb-08 9:15
led mike6-Feb-08 9:15 
GeneralRe: Accessing members of a class in an ArrayList Pin
Jimmanuel6-Feb-08 9:16
Jimmanuel6-Feb-08 9:16 
GeneralRe: Accessing members of a class in an ArrayList Pin
J$6-Feb-08 9:21
J$6-Feb-08 9:21 
AnswerRe: Accessing members of a class in an ArrayList Pin
Guffa6-Feb-08 9:22
Guffa6-Feb-08 9:22 
GeneralRe: Accessing members of a class in an ArrayList Pin
hpjchobbes6-Feb-08 9:41
hpjchobbes6-Feb-08 9:41 
GeneralRe: Accessing members of a class in an ArrayList Pin
User 66586-Feb-08 10:05
User 66586-Feb-08 10:05 
AnswerRe: Accessing members of a class in an ArrayList Pin
Guffa6-Feb-08 10:28
Guffa6-Feb-08 10:28 
hpjchobbes wrote:
When to use ArrayList


That is very easy: Never.

If you ever need a list of object references, use List<object> instead of ArrayList.

Most of the time when you store objects of different types in a list, they still have a common base type that you can use rather than an object reference, like for example List<Control> for storing references to any type of controls.

Experience is the sum of all the mistakes you have done.

GeneralMS SQL 2005 Pin
s3rro6-Feb-08 8:59
s3rro6-Feb-08 8:59 
GeneralRe: MS SQL 2005 Pin
J$6-Feb-08 9:13
J$6-Feb-08 9:13 
GeneralRe: MS SQL 2005 Pin
Not Active6-Feb-08 9:17
mentorNot Active6-Feb-08 9:17 
AnswerRe: MS SQL 2005 Pin
Nouman Bhatti6-Feb-08 21:54
Nouman Bhatti6-Feb-08 21:54 
GeneralBinding to DataTable built from mutliple database tables Pin
polishprogrammer6-Feb-08 8:54
polishprogrammer6-Feb-08 8:54 
GeneralRe: Binding to DataTable built from mutliple database tables Pin
Gareth H6-Feb-08 9:29
Gareth H6-Feb-08 9:29 
GeneralRe: Binding to DataTable built from mutliple database tables Pin
polishprogrammer6-Feb-08 9:49
polishprogrammer6-Feb-08 9:49 
GeneralRe: Binding to DataTable built from mutliple database tables Pin
Gareth H6-Feb-08 11:34
Gareth H6-Feb-08 11:34 
GeneralRe: Binding to DataTable built from mutliple database tables Pin
polishprogrammer6-Feb-08 18:08
polishprogrammer6-Feb-08 18:08 
News.NET Reference Code Downloader For Debugging With Visual Studio 2005 Pin
Izzet Kerem Kusmezer6-Feb-08 8:36
Izzet Kerem Kusmezer6-Feb-08 8:36 
QuestionI am sorry if I am asking an abstract question; but I have a multithreaded question Pin
sameerhanda6-Feb-08 7:33
sameerhanda6-Feb-08 7:33 
GeneralRe: I am sorry if I am asking an abstract question; but I have a multithreaded question Pin
Jimmanuel6-Feb-08 8:00
Jimmanuel6-Feb-08 8:00 
GeneralRe: I am sorry if I am asking an abstract question; but I have a multithreaded question Pin
sameerhanda6-Feb-08 8:19
sameerhanda6-Feb-08 8:19 
GeneralRe: I am sorry if I am asking an abstract question; but I have a multithreaded question Pin
half-life6-Feb-08 8:44
half-life6-Feb-08 8:44 
GeneralRe: I am sorry if I am asking an abstract question; but I have a multithreaded question Pin
sameerhanda6-Feb-08 8:50
sameerhanda6-Feb-08 8:50 
GeneralRe: I am sorry if I am asking an abstract question; but I have a multithreaded question Pin
half-life6-Feb-08 8:53
half-life6-Feb-08 8:53 
GeneralEmbedding a control inside a toolbar Pin
sabrown1006-Feb-08 7:28
sabrown1006-Feb-08 7:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.