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

C#

 
QuestionHow to resolve class type using enum Pin
emmmatty122-Jan-12 20:05
emmmatty122-Jan-12 20:05 
AnswerRe: How to resolve class type using enum Pin
OriginalGriff22-Jan-12 22:05
mveOriginalGriff22-Jan-12 22:05 
GeneralRe: How to resolve class type using enum Pin
emmmatty122-Jan-12 22:37
emmmatty122-Jan-12 22:37 
GeneralRe: How to resolve class type using enum Pin
OriginalGriff22-Jan-12 22:38
mveOriginalGriff22-Jan-12 22:38 
GeneralRe: How to resolve class type using enum Pin
PIEBALDconsult23-Jan-12 5:13
mvePIEBALDconsult23-Jan-12 5:13 
GeneralRe: How to resolve class type using enum Pin
jschell23-Jan-12 8:17
jschell23-Jan-12 8:17 
GeneralRe: How to resolve class type using enum Pin
BobJanova24-Jan-12 10:07
BobJanova24-Jan-12 10:07 
GeneralRe: How to resolve class type using enum Pin
jschell25-Jan-12 14:50
jschell25-Jan-12 14:50 
BobJanova wrote:
The class resolution is not through the same mechanism if you use reflection,
and it is much slower.


The same mechanism is used to load the assembly and class into the AppDomain regardless of whether reflection or application reference is used.

Class loading is a one time operation so that will not have an impact on any general application.

So best you can be referring to is method invocation. If you use indirect method invocation, every time, then that is proxy mechanism where the proxy mechanism itself has a impact.

Again however you would be hard pressed to measure that with code that actually does anything.

However if you use a direct implementation, such as interface/base class invocation then the call semantics are the same. A class instance in memory is the same regardless of whether the class/assembly was loaded by reflection or via that application loading mechanism.
GeneralRe: How to resolve class type using enum Pin
Dean Oliver23-Jan-12 18:20
Dean Oliver23-Jan-12 18:20 
GeneralRe: How to resolve class type using enum Pin
BobJanova24-Jan-12 10:32
BobJanova24-Jan-12 10:32 
QuestionTask cancellation Pin
michaelgr122-Jan-12 3:59
michaelgr122-Jan-12 3:59 
AnswerRe: Task cancellation Pin
Dave Kreskowiak22-Jan-12 8:15
mveDave Kreskowiak22-Jan-12 8:15 
Questionhow to retrieve a single value from datatable Pin
mschotamaster21-Jan-12 22:01
mschotamaster21-Jan-12 22:01 
AnswerRe: how to retrieve a single value from datatable Pin
Richard MacCutchan21-Jan-12 23:01
mveRichard MacCutchan21-Jan-12 23:01 
GeneralRe: how to retrieve a single value from datatable Pin
mschotamaster22-Jan-12 3:12
mschotamaster22-Jan-12 3:12 
GeneralRe: how to retrieve a single value from datatable Pin
Richard MacCutchan22-Jan-12 3:15
mveRichard MacCutchan22-Jan-12 3:15 
GeneralRe: how to retrieve a single value from datatable Pin
mschotamaster22-Jan-12 3:17
mschotamaster22-Jan-12 3:17 
GeneralRe: how to retrieve a single value from datatable Pin
Richard MacCutchan22-Jan-12 3:23
mveRichard MacCutchan22-Jan-12 3:23 
GeneralRe: how to retrieve a single value from datatable Pin
mschotamaster22-Jan-12 3:38
mschotamaster22-Jan-12 3:38 
GeneralRe: how to retrieve a single value from datatable Pin
Nathan Stiles23-Jan-12 10:45
Nathan Stiles23-Jan-12 10:45 
AnswerRe: how to retrieve a single value from datatable Pin
Eddy Vluggen22-Jan-12 3:41
professionalEddy Vluggen22-Jan-12 3:41 
GeneralRe: how to retrieve a single value from datatable Pin
mschotamaster22-Jan-12 3:48
mschotamaster22-Jan-12 3:48 
GeneralRe: how to retrieve a single value from datatable Pin
Eddy Vluggen22-Jan-12 3:49
professionalEddy Vluggen22-Jan-12 3:49 
AnswerRe: how to retrieve a single value from datatable Pin
Luc Pattyn22-Jan-12 4:05
sitebuilderLuc Pattyn22-Jan-12 4:05 
GeneralRe: how to retrieve a single value from datatable Pin
Richard MacCutchan22-Jan-12 5:06
mveRichard MacCutchan22-Jan-12 5:06 

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.