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

C#

 
Questionreflection method Pin
George_George7-Sep-08 17:04
George_George7-Sep-08 17:04 
Questionusing reflection to invoke a method Pin
George_George7-Sep-08 16:16
George_George7-Sep-08 16:16 
AnswerRe: using reflection to invoke a method Pin
PIEBALDconsult7-Sep-08 16:36
mvePIEBALDconsult7-Sep-08 16:36 
GeneralRe: using reflection to invoke a method Pin
George_George7-Sep-08 16:50
George_George7-Sep-08 16:50 
AnswerRe: using reflection to invoke a method Pin
N a v a n e e t h7-Sep-08 18:23
N a v a n e e t h7-Sep-08 18:23 
GeneralRe: using reflection to invoke a method Pin
George_George7-Sep-08 18:31
George_George7-Sep-08 18:31 
GeneralRe: using reflection to invoke a method Pin
N a v a n e e t h7-Sep-08 18:41
N a v a n e e t h7-Sep-08 18:41 
GeneralRe: using reflection to invoke a method Pin
George_George7-Sep-08 18:47
George_George7-Sep-08 18:47 
Thanks N a v a n e e t h,


1.

I am interested in the method of using CreateDelegate you mentioned here. But I am confused why it could improve performance, since you still need to create MethodInfo, and what are the differences internally compared with GetType.GetMethod.Invoke? Is it because GetType.GetMethod.Invoke binds at runtime but CreateDelegate binds at compile time, so CreateDelegate is faster?

2.

But if it is the compile time/runtime binds performance differences, my confusion is the reason of why using relfection is beause we do not know the type until runtime, does compiler time binding really practical even if it saves performance? Any comments?


regards,
George
GeneralRe: using reflection to invoke a method Pin
N a v a n e e t h7-Sep-08 19:03
N a v a n e e t h7-Sep-08 19:03 
GeneralRe: using reflection to invoke a method Pin
George_George7-Sep-08 20:57
George_George7-Sep-08 20:57 
GeneralRe: using reflection to invoke a method Pin
George_George10-Sep-08 0:23
George_George10-Sep-08 0:23 
QuestionHow Pin
Silvyster7-Sep-08 15:07
Silvyster7-Sep-08 15:07 
AnswerRe: How Pin
Anthony Mushrow7-Sep-08 23:00
professionalAnthony Mushrow7-Sep-08 23:00 
QuestionChanging image size ? Pin
Mohammad Dayyan7-Sep-08 12:31
Mohammad Dayyan7-Sep-08 12:31 
AnswerRe: Changing image size ? Pin
N a v a n e e t h7-Sep-08 18:36
N a v a n e e t h7-Sep-08 18:36 
QuestionString Obfusication cause program not to work. Pin
Buckleyindahouse7-Sep-08 11:11
Buckleyindahouse7-Sep-08 11:11 
AnswerRe: String Obfusication cause program not to work. Pin
Mbah Dhaim7-Sep-08 11:34
Mbah Dhaim7-Sep-08 11:34 
AnswerRe: String Obfusication cause program not to work. Pin
#realJSOP7-Sep-08 23:53
mve#realJSOP7-Sep-08 23:53 
GeneralGetting DataGridView to work with 3 DB tables Pin
jocke4u7-Sep-08 9:58
jocke4u7-Sep-08 9:58 
GeneralRe: Getting DataGridView to work with 3 DB tables Pin
Wendelius7-Sep-08 11:03
mentorWendelius7-Sep-08 11:03 
QuestionMaking a C# Console Menu [modified] Pin
CaptainKrtek7-Sep-08 8:47
CaptainKrtek7-Sep-08 8:47 
AnswerRe: Making a C# Console Menu Pin
Mbah Dhaim7-Sep-08 9:52
Mbah Dhaim7-Sep-08 9:52 
GeneralRe: Making a C# Console Menu Pin
CaptainKrtek7-Sep-08 10:28
CaptainKrtek7-Sep-08 10:28 
QuestionDifferently another way to set value for element in XML? Pin
nhatvhm7-Sep-08 7:33
nhatvhm7-Sep-08 7:33 
AnswerRe: Differently another way to set value for element in XML? Pin
Guffa7-Sep-08 8:01
Guffa7-Sep-08 8:01 

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.