Click here to Skip to main content
15,902,492 members
Home / Discussions / C#
   

C#

 
QuestionPassing string to stored procedure. Pin
meeram3951-Jul-10 21:40
meeram3951-Jul-10 21:40 
AnswerRe: Passing string to stored procedure. Pin
meeram3951-Jul-10 23:24
meeram3951-Jul-10 23:24 
Questiondisplay analog clock Pin
Hemant Thaker1-Jul-10 21:01
Hemant Thaker1-Jul-10 21:01 
AnswerRe: display analog clock Pin
Peace ON1-Jul-10 21:22
Peace ON1-Jul-10 21:22 
QuestionHow to Find character in ArrayList Pin
raju_shiva1-Jul-10 19:59
raju_shiva1-Jul-10 19:59 
AnswerRe: How to Find character in ArrayList Pin
ramzg1-Jul-10 20:11
ramzg1-Jul-10 20:11 
AnswerRe: How to Find character in ArrayList Pin
Keith Barrow1-Jul-10 21:06
professionalKeith Barrow1-Jul-10 21:06 
AnswerRe: How to Find character in ArrayList Pin
DaveyM692-Jul-10 1:24
professionalDaveyM692-Jul-10 1:24 
Not an answer to your question, but a suggestion.

An ArrayList is generally not recommended as every item has to be converted to/from a object. This boxing/unboxing is an unecessary performance hit and more importantly can make working with the items (and therefore the code) more complicated.

If the items are all of the same type then use List<T> (where T is the type of your object, so for the example you have given use List<string>. There are other collections in System.Collections.Generic and System.Collections.ObjectModel that you may find useful depending on what you are using the list for. I would recommend using the generic types where available or the ones that are type specific such as StringCollection.

If you have mixed classes that you want in a collection but they derive from a common base class or interface then you can have a collection of that eg: List<IMyBaseInterface>.
Dave

If this helped, please vote & accept answer!


Binging is like googling, it just feels dirtier. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

Questionnamespace name 'ArrayList' could not be found Pin
raju_shiva1-Jul-10 18:48
raju_shiva1-Jul-10 18:48 
AnswerRe: namespace name 'ArrayList' could not be found Pin
Abhinav S1-Jul-10 18:56
Abhinav S1-Jul-10 18:56 
QuestionHow to find the character in list Pin
raju_shiva1-Jul-10 18:15
raju_shiva1-Jul-10 18:15 
AnswerRe: How to find the character in list Pin
Abhinav S1-Jul-10 18:53
Abhinav S1-Jul-10 18:53 
Generalget the list of all page labels(numbers) Pin
TweakBird1-Jul-10 17:45
TweakBird1-Jul-10 17:45 
QuestionUnhandled exception handler problem Pin
Super Lloyd1-Jul-10 15:45
Super Lloyd1-Jul-10 15:45 
AnswerRe: Unhandled exception handler problem Pin
Luc Pattyn1-Jul-10 17:05
sitebuilderLuc Pattyn1-Jul-10 17:05 
GeneralRe: Unhandled exception handler problem Pin
Super Lloyd1-Jul-10 19:16
Super Lloyd1-Jul-10 19:16 
QuestionVS2010 Chart Control [modified] Pin
It_tech1-Jul-10 8:54
It_tech1-Jul-10 8:54 
AnswerRe: VS2010 Chart Control PinPopular
Pete O'Hanlon1-Jul-10 13:13
mvePete O'Hanlon1-Jul-10 13:13 
GeneralRe: VS2010 Chart Control Pin
It_tech1-Jul-10 18:51
It_tech1-Jul-10 18:51 
GeneralRe: VS2010 Chart Control Pin
Daniel Grunwald2-Jul-10 0:37
Daniel Grunwald2-Jul-10 0:37 
GeneralRe: VS2010 Chart Control Pin
DaveyM692-Jul-10 1:35
professionalDaveyM692-Jul-10 1:35 
GeneralRe: VS2010 Chart Control Pin
Pete O'Hanlon2-Jul-10 2:23
mvePete O'Hanlon2-Jul-10 2:23 
Questionto handle Multiple clients.... Pin
yum 20101-Jul-10 8:08
yum 20101-Jul-10 8:08 
AnswerThe hardest part of dealing with mulitple clients Pin
Ennis Ray Lynch, Jr.1-Jul-10 8:27
Ennis Ray Lynch, Jr.1-Jul-10 8:27 
Questionsending serialized listview over tcp Pin
teknolog1231-Jul-10 7:31
teknolog1231-Jul-10 7:31 

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.