Can function calling conventions be changed in unmanaged C#

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

apm

Can calling conventions of functions be changed in unmanaged C# in a similar
way that they can be changed using C++?
 
Can calling conventions of functions be changed in unmanaged C# in a similar
way that they can be changed using C++?

There's no such thing as "unmanaged C#". I believe Willy answered your
question in your other thread.


Mattias
 
Mattias Sjögren said:
There's no such thing as "unmanaged C#".

So code that is not safe is "unmanaged" in C++.NET and code that is not
managed is "unsafe" in C#.NET?
I believe Willy answered your
question in your other thread.

I don't want the answer to be "no" in version 1.1.
 
So code that is not safe is "unmanaged" in C++.NET

No, unmanaged just means that it compiles to native code. Managed
means it compiles to IL and metadata that will be JIT-compiled by the
CLR.

The C# distinction between "safe" and "unsafe" code doesn't really
exist in C++.

and code that is not managed is "unsafe" in C#.NET?

C# always produces managed code, whether or not you're using "unsafe"
code blocks.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top