Click here to Skip to main content
15,887,676 members
Home / Discussions / C#
   

C#

 
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 
Questionssssssssssssssssssssss Pin
zhuangkai3-Nov-09 23:08
zhuangkai3-Nov-09 23:08 
AnswerRe: ssssssssssssssssssssss Pin
padmanabhan N3-Nov-09 23:11
padmanabhan N3-Nov-09 23:11 
GeneralRe: ssssssssssssssssssssss Pin
OriginalGriff4-Nov-09 1:19
mveOriginalGriff4-Nov-09 1:19 
GeneralRe: ssssssssssssssssssssss Pin
padmanabhan N4-Nov-09 1:32
padmanabhan N4-Nov-09 1:32 
GeneralRe: ssssssssssssssssssssss Pin
OriginalGriff4-Nov-09 1:37
mveOriginalGriff4-Nov-09 1:37 
QuestionSort Multi-Pges tiff file using C# Pin
sher_azam3-Nov-09 23:02
sher_azam3-Nov-09 23:02 

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.