Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
QuestionC# dataset error Pin
classy_dog8-Dec-11 9:05
classy_dog8-Dec-11 9:05 
QuestionLinq - Remove Object From Collection Pin
Kevin Marois8-Dec-11 7:19
professionalKevin Marois8-Dec-11 7:19 
AnswerRe: Linq - Remove Object From Collection Pin
fjdiewornncalwe8-Dec-11 7:37
professionalfjdiewornncalwe8-Dec-11 7:37 
AnswerRe: Linq - Remove Object From Collection Pin
Dan Mos8-Dec-11 7:46
Dan Mos8-Dec-11 7:46 
GeneralRe: Linq - Remove Object From Collection Pin
Kevin Marois8-Dec-11 7:49
professionalKevin Marois8-Dec-11 7:49 
GeneralRe: Linq - Remove Object From Collection Pin
Dan Mos8-Dec-11 7:56
Dan Mos8-Dec-11 7:56 
GeneralRe: Linq - Remove Object From Collection Pin
Kevin Marois8-Dec-11 7:57
professionalKevin Marois8-Dec-11 7:57 
GeneralRe: Linq - Remove Object From Collection Pin
Dan Mos8-Dec-11 8:22
Dan Mos8-Dec-11 8:22 
Well this is more complicated then it looks. Cause you don't know upfront how
many nested levels you have.

As each node has a list of childnodes and then each node in the nested childNodes list could have an
even deeper nested level list of childNodes ...

The only thing that comes to mind wright now is a brute force step by step actions:

1)ForEach item in the upper level list check to see if it has the id and remove it if so.
2) Else loop through the inner collection if Count>0 and remove from there else loop through it's inner collection if Count>0
and so on.


Unless you do know that there are only 2 levels.
All the best,

Dan

GeneralRe: Linq - Remove Object From Collection Pin
Kevin Marois8-Dec-11 8:24
professionalKevin Marois8-Dec-11 8:24 
GeneralRe: Linq - Remove Object From Collection Pin
Dan Mos8-Dec-11 9:18
Dan Mos8-Dec-11 9:18 
GeneralRe: Linq - Remove Object From Collection Pin
BobJanova8-Dec-11 22:44
BobJanova8-Dec-11 22:44 
Generaltwo compile time errors with your for loop based code: Re: Linq - Remove Object From Collection Pin
BillWoodruff9-Dec-11 9:16
professionalBillWoodruff9-Dec-11 9:16 
GeneralRe: Linq - Remove Object From Collection Pin
BillWoodruff9-Dec-11 9:17
professionalBillWoodruff9-Dec-11 9:17 
AnswerRe: Linq - Remove Object From Collection Pin
Mirko198012-Dec-11 2:53
Mirko198012-Dec-11 2:53 
AnswerRe: Linq - Remove Object From Collection Pin
BillWoodruff9-Dec-11 1:04
professionalBillWoodruff9-Dec-11 1:04 
QuestionType Isomorphisms: this is more an open theory question than a practical programming question Pin
Alaric_8-Dec-11 6:01
professionalAlaric_8-Dec-11 6:01 
AnswerRe: Type Isomorphisms: this is more an open theory question than a practical programming question Pin
Alaric_8-Dec-11 8:09
professionalAlaric_8-Dec-11 8:09 
QuestionCompress and decompress string between java and c# Pin
Hossein Khalaj8-Dec-11 6:00
Hossein Khalaj8-Dec-11 6:00 
AnswerRe: Compress and decompress string between java and c# Pin
Luc Pattyn8-Dec-11 7:25
sitebuilderLuc Pattyn8-Dec-11 7:25 
GeneralRe: Compress and decompress string between java and c# Pin
Hossein Khalaj8-Dec-11 7:40
Hossein Khalaj8-Dec-11 7:40 
AnswerRe: Compress and decompress string between java and c# Pin
Luc Pattyn8-Dec-11 8:39
sitebuilderLuc Pattyn8-Dec-11 8:39 
GeneralRe: Compress and decompress string between java and c# Pin
Hossein Khalaj8-Dec-11 8:48
Hossein Khalaj8-Dec-11 8:48 
AnswerRe: Compress and decompress string between java and c# Pin
Luc Pattyn8-Dec-11 9:06
sitebuilderLuc Pattyn8-Dec-11 9:06 
GeneralRe: Compress and decompress string between java and c# Pin
Hossein Khalaj8-Dec-11 9:10
Hossein Khalaj8-Dec-11 9:10 
QuestionClass to toggle a bool when it goes out of scope Pin
__John_8-Dec-11 3:58
__John_8-Dec-11 3:58 

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.