Click here to Skip to main content
15,902,939 members
Home / Discussions / C#
   

C#

 
GeneralRe: Writing and reading binary data Pin
padcom132-Sep-03 5:01
padcom132-Sep-03 5:01 
GeneralRe: Writing and reading binary data Pin
Eric Gunnerson (msft)2-Sep-03 9:48
Eric Gunnerson (msft)2-Sep-03 9:48 
QuestionHow to call a form using reflection Pin
Ista1-Sep-03 14:20
Ista1-Sep-03 14:20 
AnswerRe: How to call a form using reflection Pin
James T. Johnson1-Sep-03 16:35
James T. Johnson1-Sep-03 16:35 
GeneralRe: How to call a form using reflection Pin
leppie1-Sep-03 18:50
leppie1-Sep-03 18:50 
GeneralRe: How to call a form using reflection Pin
James T. Johnson2-Sep-03 2:28
James T. Johnson2-Sep-03 2:28 
GeneralRe: How to call a form using reflection Pin
leppie2-Sep-03 7:08
leppie2-Sep-03 7:08 
QuestionIterate through class properties? Pin
vedbu1-Sep-03 13:33
vedbu1-Sep-03 13:33 
I have a class with 10 properties. Within one of the class methods, I'd like to iterate through the 10 properties rather than referencing each one manually. So instead of this:

this.property1=
this.property2=
this.property3=

I'd like to do something like this:
foreach( property p in this.properties )
{
p.value =
...
}

Is there a way to do this?

Using reflection, I can get the properties and iterate through them, but it's a blank object. I want to be able to do that with an existing object where the properties contain valid data values.

Thanks in advance.
AnswerRe: Iterate through class properties? Pin
Ista1-Sep-03 14:14
Ista1-Sep-03 14:14 
AnswerRe: Iterate through class properties? Pin
Jim Stewart1-Sep-03 15:44
Jim Stewart1-Sep-03 15:44 
GeneralRe: Iterate through class properties? Pin
vedbu2-Sep-03 13:26
vedbu2-Sep-03 13:26 
QuestionAbout getting the decimal ASCII codes of the characters??? Pin
cemlouis1-Sep-03 12:13
cemlouis1-Sep-03 12:13 
AnswerRe: About getting the decimal ASCII codes of the characters??? Pin
leppie1-Sep-03 13:03
leppie1-Sep-03 13:03 
GeneralRe: About getting the decimal ASCII codes of the characters??? Pin
cemlouis2-Sep-03 6:10
cemlouis2-Sep-03 6:10 
QuestionHow to communicate a aspx page with a thread ( one thread per session )? Pin
zoltix1-Sep-03 11:48
zoltix1-Sep-03 11:48 
Questionhow to detect DbClick on a Row in DataGrid Pin
Anonymous1-Sep-03 8:27
Anonymous1-Sep-03 8:27 
AnswerRe: how to detect DbClick on a Row in DataGrid Pin
MeisterBiber1-Sep-03 9:19
MeisterBiber1-Sep-03 9:19 
GeneralValidate a form Pin
nico1931-Sep-03 6:10
nico1931-Sep-03 6:10 
QuestionHow fast is .NET? Pin
Cristoff1-Sep-03 5:46
Cristoff1-Sep-03 5:46 
Answerquestions Pin
Cristoff1-Sep-03 5:52
Cristoff1-Sep-03 5:52 
AnswerRe: How fast is .NET? Pin
Nish Nishant1-Sep-03 6:29
sitebuilderNish Nishant1-Sep-03 6:29 
GeneralRe: How fast is .NET? Pin
J. Dunlap1-Sep-03 9:22
J. Dunlap1-Sep-03 9:22 
AnswerRe: How fast is .NET? Pin
Daniel Turini1-Sep-03 6:37
Daniel Turini1-Sep-03 6:37 
GeneralRe: How fast is .NET? Pin
Cristoff3-Sep-03 3:10
Cristoff3-Sep-03 3:10 
GeneralRe: How fast is .NET? Pin
Daniel Turini3-Sep-03 3:43
Daniel Turini3-Sep-03 3:43 

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.