Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
AnswerRe: Model-View-Presenter (MVP): events in IView vs Methods in Presenter Pin
Giorgi Dalakishvili4-Nov-09 3:29
mentorGiorgi Dalakishvili4-Nov-09 3:29 
Questionload image Pin
Arefeh Haghpnah4-Nov-09 3:13
Arefeh Haghpnah4-Nov-09 3:13 
AnswerCross post Pin
Not Active4-Nov-09 3:38
mentorNot Active4-Nov-09 3:38 
AnswerRe: load image Pin
Shameel4-Nov-09 4:06
professionalShameel4-Nov-09 4:06 
GeneralRe: load image Pin
Arefeh Haghpnah5-Nov-09 7:32
Arefeh Haghpnah5-Nov-09 7:32 
QuestionSendKeys in WebService Pin
Juergen Loewner4-Nov-09 2:16
Juergen Loewner4-Nov-09 2:16 
AnswerRe: SendKeys in WebService Pin
Dave Kreskowiak4-Nov-09 5:35
mveDave Kreskowiak4-Nov-09 5:35 
QuestionDealing with Lists as objects Pin
MatthysDT4-Nov-09 2:09
MatthysDT4-Nov-09 2:09 
I have a class, with a method receiving objects and dealing with them accordingly.

But.... when a List object e.g List<MyObjectType> is passed to the method I want to be able to loop through the list and deal with each and every object within the list the same as I would have with a normal object.

How do I:
1. Recognize an object as a List?
2. Enumerate this list?

So far, I was able to recognize the object as being a list by doing the following (this is one for coding horrors):
if (pInputObject.GetType().FullName.Substring(0, 31).Trim() == "System.Collections.Generic.List") <br />
{<br />
.<br />
.<br />
.<br />
}



AnswerRe: Dealing with Lists as objects Pin
Luc Pattyn4-Nov-09 2:34
sitebuilderLuc Pattyn4-Nov-09 2:34 
GeneralRe: Dealing with Lists as objects Pin
MatthysDT4-Nov-09 2:49
MatthysDT4-Nov-09 2:49 
GeneralRe: Dealing with Lists as objects Pin
Luc Pattyn4-Nov-09 4:05
sitebuilderLuc Pattyn4-Nov-09 4:05 
AnswerRe: Dealing with Lists as objects Pin
Shameel4-Nov-09 3:42
professionalShameel4-Nov-09 3:42 
QuestionRe: Dealing with Lists as objects Pin
MatthysDT4-Nov-09 18:51
MatthysDT4-Nov-09 18:51 
AnswerRe: Dealing with Lists as objects Pin
PIEBALDconsult4-Nov-09 3:56
mvePIEBALDconsult4-Nov-09 3:56 
QuestionGlass Effect using dwmapi.dll in windows xp on C# Pin
Viswa Teja4-Nov-09 2:01
Viswa Teja4-Nov-09 2:01 
AnswerRe: Glass Effect using dwmapi.dll in windows xp on C# [modified] Pin
Covean4-Nov-09 2:12
Covean4-Nov-09 2:12 
AnswerDumb attempt to bump post. Pin
Pete O'Hanlon4-Nov-09 2:41
mvePete O'Hanlon4-Nov-09 2:41 
AnswerRe: Glass Effect using dwmapi.dll in windows xp on C# Pin
Dave Kreskowiak4-Nov-09 5:20
mveDave Kreskowiak4-Nov-09 5:20 
Question[Windows Form with visual C#] - Problem with data conversion Pin
_ASPAle_4-Nov-09 1:12
_ASPAle_4-Nov-09 1:12 
AnswerRe: [Windows Form with visual C#] - Problem with data conversion Pin
OriginalGriff4-Nov-09 1:16
mveOriginalGriff4-Nov-09 1:16 
GeneralRe: [Windows Form with visual C#] - Problem with data conversion Pin
_ASPAle_4-Nov-09 2:17
_ASPAle_4-Nov-09 2:17 
AnswerRe: [Windows Form with visual C#] - Problem with data conversion Pin
Giorgi Dalakishvili4-Nov-09 1:19
mentorGiorgi Dalakishvili4-Nov-09 1:19 
AnswerRe: [Windows Form with visual C#] - Problem with data conversion Pin
Luc Pattyn4-Nov-09 2:37
sitebuilderLuc Pattyn4-Nov-09 2:37 
QuestionXNA: Game updating slowly Pin
jdneul4-Nov-09 1:06
jdneul4-Nov-09 1:06 
AnswerRe: XNA: Game updating slowly Pin
harold aptroot4-Nov-09 5:49
harold aptroot4-Nov-09 5:49 

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.