Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
QuestionValidate Class Properties Pin
Kevin Marois5-Apr-10 15:41
professionalKevin Marois5-Apr-10 15:41 
AnswerRe: Validate Class Properties Pin
FyreWyrm5-Apr-10 15:51
FyreWyrm5-Apr-10 15:51 
GeneralRe: Validate Class Properties Pin
Kevin Marois5-Apr-10 15:52
professionalKevin Marois5-Apr-10 15:52 
AnswerRe: Validate Class Properties Pin
N a v a n e e t h5-Apr-10 15:59
N a v a n e e t h5-Apr-10 15:59 
QuestionHow do i filter in bindingsource Pin
crisjala5-Apr-10 15:22
crisjala5-Apr-10 15:22 
AnswerRe: How do i filter in bindingsource Pin
Eddy Vluggen5-Apr-10 22:16
professionalEddy Vluggen5-Apr-10 22:16 
AnswerRe: How do i filter in bindingsource Pin
Dave Kreskowiak6-Apr-10 1:48
mveDave Kreskowiak6-Apr-10 1:48 
QuestionReflection with a List Pin
MollyTheCoder5-Apr-10 13:44
MollyTheCoder5-Apr-10 13:44 
I'm trying to find a cleaner way to reflectively get at the contents of my class that are lists of other classes:

class BigClass
{
   public List<LittleClass1> LittleList1;
   public List<LittleClass2> LittleList2;
   public string BigString;
}

class LittleClass1
{
   public string a;
   public int b;
}

class LittleClass2 : LittleClass1
{
   public string c;
}



To look into BigClass I use
foreach (FieldInfo fi in BigClass.GetFields())
{ 
   if (fi.GetValue(bigClassInstance).ToString().StartsWith("System.Collections.Generic.List"))
   {
      //must be a list
   }
}

It finds the lists, and I can process them from there, but there must be a better way.
AnswerRe: Reflection with a List Pin
PIEBALDconsult5-Apr-10 14:00
mvePIEBALDconsult5-Apr-10 14:00 
GeneralRe: Reflection with a List Pin
MollyTheCoder5-Apr-10 14:28
MollyTheCoder5-Apr-10 14:28 
GeneralRe: Reflection with a List Pin
PIEBALDconsult5-Apr-10 15:30
mvePIEBALDconsult5-Apr-10 15:30 
Questionupdate twitter status Pin
Jassim Rahma5-Apr-10 11:58
Jassim Rahma5-Apr-10 11:58 
AnswerRe: update twitter status Pin
Not Active5-Apr-10 12:02
mentorNot Active5-Apr-10 12:02 
GeneralRe: update twitter status Pin
FyreWyrm5-Apr-10 15:52
FyreWyrm5-Apr-10 15:52 
AnswerRe: update twitter status Pin
Tony Richards5-Apr-10 12:02
Tony Richards5-Apr-10 12:02 
QuestionI hope this is a stupid question - Pulling CLOB data from a Stream, performing logic, and then spinning off a new Stream for further processing Pin
Alaric_5-Apr-10 10:16
professionalAlaric_5-Apr-10 10:16 
Questionsetting identity specification to yes from c# Pin
teknolog1235-Apr-10 8:14
teknolog1235-Apr-10 8:14 
AnswerRe: setting identity specification to yes from c# Pin
Dan Mos5-Apr-10 9:00
Dan Mos5-Apr-10 9:00 
GeneralRe: setting identity specification to yes from c# Pin
teknolog1235-Apr-10 9:06
teknolog1235-Apr-10 9:06 
GeneralRe: setting identity specification to yes from c# Pin
AspDotNetDev5-Apr-10 10:34
protectorAspDotNetDev5-Apr-10 10:34 
GeneralRe: setting identity specification to yes from c# Pin
teknolog1235-Apr-10 22:48
teknolog1235-Apr-10 22:48 
QuestionPass variable from GridViewRowEvent method to DataListItemEvent method in C# using ASP.NET Pin
chris.hagelstein5-Apr-10 6:43
chris.hagelstein5-Apr-10 6:43 
Questionftp server folders Pin
Priya Prk5-Apr-10 6:23
Priya Prk5-Apr-10 6:23 
AnswerRe: ftp server folders Pin
Not Active5-Apr-10 6:47
mentorNot Active5-Apr-10 6:47 
GeneralRe: ftp server folders Pin
Priya Prk5-Apr-10 21:16
Priya Prk5-Apr-10 21: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.