Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
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 
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 
Definition of the INested<T> interface will not compile since ChildNodes is a field. So, for testing your code, I'll be starting with this:
XML
interface INested<T>
{
    IList<T> ChildNodes { get; set; }
}
In your code, where you compare:
if (list[i] == node) list.RemoveAt(i);
the compiler throws an error: " Operator '==' cannot be applied to operands of type 'T' and 'T' "

best, Bill
"For no man lives in the external truth among salts and acids, but in the warm, phantasmagoric chamber of his brain, with the painted windows and the storied wall." Robert Louis Stevenson

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 
AnswerRe: Class to toggle a bool when it goes out of scope Pin
PIEBALDconsult8-Dec-11 4:12
mvePIEBALDconsult8-Dec-11 4:12 
AnswerRe: Class to toggle a bool when it goes out of scope Pin
__John_8-Dec-11 5:03
__John_8-Dec-11 5:03 
GeneralRe: Class to toggle a bool when it goes out of scope Pin
harold aptroot8-Dec-11 5:21
harold aptroot8-Dec-11 5:21 
GeneralRe: Class to toggle a bool when it goes out of scope Pin
__John_11-Dec-11 22:15
__John_11-Dec-11 22:15 

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.