CallConvCdecl class

  • Thread starter Thread starter apm
  • Start date Start date
A

apm

How can the CallConvCdecl class be used? MSDN says it is for compiler
writers. Can a mere mortal use it?
 
apm said:
How can the CallConvCdecl class be used? MSDN says it is for compiler
writers. Can a mere mortal use it?

No, not really. It is a modifier that is compiled down into the IL code if
I'm not mistaken. It isn't of any use at runtime. It doesn't even have any
real functionality, its just a placeholder class.
 
What is a place holder class?

Daniel O'Connell said:
No, not really. It is a modifier that is compiled down into the IL code if
I'm not mistaken. It isn't of any use at runtime. It doesn't even have any
real functionality, its just a placeholder class.
 
apm said:
What is a place holder class?

It has no actual functionality, but some other class or code uses its type
to identify some kind of behavior. In this case I'd guess the reflection
subsystem generates the correct IL for it. Think of it sort of like an
attribute.
 
Back
Top