Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: Managing Memory and Resources Pin
MrEyes9-May-07 22:53
MrEyes9-May-07 22:53 
QuestionValue From A Cell Pin
BlitzPackage9-May-07 6:09
BlitzPackage9-May-07 6:09 
AnswerRe: Value From A Cell Pin
Nouman Bhatti9-May-07 20:24
Nouman Bhatti9-May-07 20:24 
QuestionEditing list thru the Enumerator Pin
LCI9-May-07 6:00
LCI9-May-07 6:00 
AnswerRe: Editing list thru the Enumerator Pin
Tarakeshwar Reddy9-May-07 6:19
professionalTarakeshwar Reddy9-May-07 6:19 
GeneralRe: Editing list thru the Enumerator Pin
LCI9-May-07 6:39
LCI9-May-07 6:39 
GeneralRe: Editing list thru the Enumerator Pin
Tarakeshwar Reddy9-May-07 6:54
professionalTarakeshwar Reddy9-May-07 6:54 
GeneralRe: Editing list thru the Enumerator Pin
Patrick Etc.9-May-07 10:47
Patrick Etc.9-May-07 10:47 
One thing you should watch out for is that changing the size of the list during a foreach() call will throw an exception.

So make sure that you don't add or remove items during enumeration. Find the items you want to operate on, save references to them (or their indices) and call the appropriate methods after the loop finishes.



Cheers,
Patrick

Questionanimated image Pin
sujithkumarsl9-May-07 5:32
sujithkumarsl9-May-07 5:32 
AnswerRe: animated image Pin
Tarakeshwar Reddy9-May-07 5:46
professionalTarakeshwar Reddy9-May-07 5:46 
GeneralRe: animated image Pin
sujithkumarsl9-May-07 19:07
sujithkumarsl9-May-07 19:07 
QuestionActiveDirectory Entries and C# Pin
ccitt9-May-07 5:25
ccitt9-May-07 5:25 
QuestionRemoting Pin
Diego F.9-May-07 5:18
Diego F.9-May-07 5:18 
QuestionExplorer, "Open with..." multiple files Pin
AlexZieg719-May-07 5:06
AlexZieg719-May-07 5:06 
AnswerRe: Explorer, "Open with..." multiple files Pin
AlexZieg719-May-07 7:22
AlexZieg719-May-07 7:22 
AnswerRe: Explorer, "Open with..." multiple files Pin
Luc Pattyn9-May-07 7:50
sitebuilderLuc Pattyn9-May-07 7:50 
GeneralRe: Explorer, "Open with..." multiple files Pin
AlexZieg719-May-07 8:42
AlexZieg719-May-07 8:42 
GeneralRe: Explorer, "Open with..." multiple files Pin
Luc Pattyn9-May-07 8:55
sitebuilderLuc Pattyn9-May-07 8:55 
QuestionEvent Handlers :) Pin
Justin Perez9-May-07 4:50
Justin Perez9-May-07 4:50 
AnswerRe: Event Handlers :) Pin
Bijesh9-May-07 6:47
Bijesh9-May-07 6:47 
GeneralRe: Event Handlers :) Pin
Justin Perez9-May-07 8:20
Justin Perez9-May-07 8:20 
GeneralRe: Event Handlers :) Pin
Bijesh9-May-07 23:19
Bijesh9-May-07 23:19 
Questiontraversing treeView Pin
Maddie from Dartford9-May-07 3:49
Maddie from Dartford9-May-07 3:49 
AnswerRe: traversing treeView Pin
Tarakeshwar Reddy9-May-07 3:53
professionalTarakeshwar Reddy9-May-07 3:53 
Questionparse dat from html table Pin
samerh9-May-07 3:26
samerh9-May-07 3:26 

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.