Click here to Skip to main content
15,914,016 members
Home / Discussions / C#
   

C#

 
Questiontreeview checkboxes Pin
ehsan salehi20-May-09 6:04
ehsan salehi20-May-09 6:04 
Questionremoting annoying Exception {"Found two different objects associated with the same URI, '/999013af_72e3_42b1_affa_43766d7f541f/Chat'."} [modified] Pin
michael@cohen20-May-09 5:57
michael@cohen20-May-09 5:57 
QuestionCrazy error Pin
Jonathan Harker20-May-09 5:31
Jonathan Harker20-May-09 5:31 
AnswerRe: Crazy error Pin
molesworth20-May-09 5:51
molesworth20-May-09 5:51 
AnswerRe: Crazy error Pin
DavidRRR20-May-09 5:54
DavidRRR20-May-09 5:54 
AnswerRe: Crazy error Pin
Dave Kreskowiak20-May-09 6:03
mveDave Kreskowiak20-May-09 6:03 
GeneralRe: Crazy error Pin
Jonathan Harker20-May-09 7:50
Jonathan Harker20-May-09 7:50 
GeneralRe: Crazy error Pin
Christian Graus20-May-09 8:00
protectorChristian Graus20-May-09 8:00 
I guess because the framework is keeping track of where you are in the collection, which assumes the collection will not change. If it does, what should foreach do ? you may have removed an item, how do you know if it has been iterated over ? Would you want it to be ? Easier just to say 'don't change this while I am working on it'. I suspect there's a more concrete reason than that, if you look into how it's implimented, but it seems obvious to me that it would create some situations where you could not predict the behaviour of foreach if you could alter the collection.

Christian Graus

Driven to the arms of OSX by Vista.

"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

QuestionConfig File Confusion Pin
BrianAshcroft20-May-09 4:42
BrianAshcroft20-May-09 4:42 
AnswerRe: Config File Confusion Pin
Alan N20-May-09 5:07
Alan N20-May-09 5:07 
GeneralRe: Config File Confusion Pin
BrianAshcroft20-May-09 5:45
BrianAshcroft20-May-09 5:45 
GeneralRe: Config File Confusion [modified] Pin
Alan N20-May-09 5:59
Alan N20-May-09 5:59 
QuestionDataGridView Size Pin
m1220-May-09 4:25
m1220-May-09 4:25 
AnswerRe: DataGridView Size Pin
TheFoZ20-May-09 4:32
TheFoZ20-May-09 4:32 
GeneralRe: DataGridView Size Pin
m1220-May-09 4:39
m1220-May-09 4:39 
GeneralRe: DataGridView Size Pin
Alan N20-May-09 4:47
Alan N20-May-09 4:47 
AnswerRe: DataGridView Size Pin
musefan20-May-09 4:39
musefan20-May-09 4:39 
GeneralRe: DataGridView Size Pin
m1220-May-09 4:45
m1220-May-09 4:45 
AnswerRe: DataGridView Size Pin
Dave Kreskowiak20-May-09 6:00
mveDave Kreskowiak20-May-09 6:00 
QuestionRelative file path referencing problem Pin
Jacobus0120-May-09 4:09
Jacobus0120-May-09 4:09 
AnswerRe: Relative file path referencing problem Pin
Dave Kreskowiak20-May-09 5:58
mveDave Kreskowiak20-May-09 5:58 
GeneralRe: Relative file path referencing problem Pin
Jacobus0120-May-09 21:17
Jacobus0120-May-09 21:17 
GeneralRe: Relative file path referencing problem Pin
Dave Kreskowiak21-May-09 1:49
mveDave Kreskowiak21-May-09 1:49 
GeneralRe: Relative file path referencing problem Pin
Jacobus0121-May-09 1:59
Jacobus0121-May-09 1:59 
GeneralRe: Relative file path referencing problem Pin
Dave Kreskowiak21-May-09 16:16
mveDave Kreskowiak21-May-09 16:16 

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.