Click here to Skip to main content
15,908,445 members
Home / Discussions / C#
   

C#

 
QuestionPaper Setting Problem in Dot Matrix Printer using Crystal Report. Pin
sharad Pyakurel4-Nov-09 1:00
sharad Pyakurel4-Nov-09 1:00 
QuestionUsing StreamWriter twice Pin
Trollslayer4-Nov-09 0:56
mentorTrollslayer4-Nov-09 0:56 
AnswerRe: Using StreamWriter twice Pin
Covean4-Nov-09 1:15
Covean4-Nov-09 1:15 
GeneralRe: Using StreamWriter twice Pin
Trollslayer4-Nov-09 4:01
mentorTrollslayer4-Nov-09 4:01 
GeneralRe: Using StreamWriter twice Pin
Covean4-Nov-09 5:12
Covean4-Nov-09 5:12 
AnswerRe: Using StreamWriter twice Pin
Pete O'Hanlon4-Nov-09 4:22
mvePete O'Hanlon4-Nov-09 4:22 
GeneralRe: Using StreamWriter twice Pin
Trollslayer4-Nov-09 5:40
mentorTrollslayer4-Nov-09 5:40 
GeneralRe: Using StreamWriter twice Pin
Pete O'Hanlon4-Nov-09 6:39
mvePete O'Hanlon4-Nov-09 6:39 
Questionsending receiving sms Pin
sahoo.fm4-Nov-09 0:33
sahoo.fm4-Nov-09 0:33 
AnswerRe: sending receiving sms Pin
King Julien4-Nov-09 0:46
King Julien4-Nov-09 0:46 
AnswerRe: sending receiving sms Pin
Giorgi Dalakishvili4-Nov-09 0:49
mentorGiorgi Dalakishvili4-Nov-09 0:49 
QuestionIs it possible to add an interface implementation to precompiled types at runtime? Pin
dojohansen4-Nov-09 0:15
dojohansen4-Nov-09 0:15 
AnswerRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
PIEBALDconsult4-Nov-09 9:33
mvePIEBALDconsult4-Nov-09 9:33 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
dojohansen4-Nov-09 10:08
dojohansen4-Nov-09 10:08 
Thanks for trying. Unfortunately I disagree with what little you had to contribute.

Basing it on fields doesn't in any way constrain what types can be used. Fields *are* the entire state of any object. Properties often reflect state, but far from always, and they need not be writeable and indeed often should not be.

As for reflection, that would be easy, but not performant. The point of my post was I already know how to do this with reflection, but I want to avoid it and do something fast instead.

I'm now wondering if I can use dynamc methods built using reflection.emit. Then I would not need to modify any existing type, merely to generate a type which accesses the private fields of another type. It must be possible some way or another, since FieldInfo.GetValue can do it...! Don't know what IL to emit though.

Perhaps if I cache the fieldinfo instances performance won't suffer too much and reflection alone will do..?
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
Pete O'Hanlon4-Nov-09 10:21
mvePete O'Hanlon4-Nov-09 10:21 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
PIEBALDconsult4-Nov-09 10:45
mvePIEBALDconsult4-Nov-09 10:45 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
dojohansen4-Nov-09 13:22
dojohansen4-Nov-09 13:22 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? [modified] Pin
PIEBALDconsult4-Nov-09 15:07
mvePIEBALDconsult4-Nov-09 15:07 
Questionhow to use towords() function in crystal reports...... Pin
PravinYog4-Nov-09 0:14
PravinYog4-Nov-09 0:14 
QuestionChanging the colour of scroll bar Pin
deeptishete4-Nov-09 0:10
deeptishete4-Nov-09 0:10 
AnswerRe: Changing the colour of scroll bar Pin
dojohansen4-Nov-09 0:57
dojohansen4-Nov-09 0:57 
QuestionHow do you bind with a textbox to a Nullable<decimal> datasource property? Pin
Last Attacker3-Nov-09 23:42
Last Attacker3-Nov-09 23:42 
Questionaccessing windows controls through application Pin
Innayat Ullah3-Nov-09 23:36
Innayat Ullah3-Nov-09 23:36 
AnswerRe: accessing windows controls through application Pin
Giorgi Dalakishvili4-Nov-09 0:09
mentorGiorgi Dalakishvili4-Nov-09 0:09 
GeneralRe: accessing windows controls through application Pin
Innayat Ullah8-Nov-09 18:47
Innayat Ullah8-Nov-09 18:47 

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.