Mario
Mario

Reputation: 14800

Calling C# functions from C++ does create compiled code or not

If I call C# functions/classes from a C++ project, the C++ code will still be compiled as before? or it will be reversible by a decompiler just like any other C# project?

I am also interested in the performance, if I call a C# function from C++ will it call only the .NET dll assembly function and run fast as a C++ app? or will my entire C++ project run slow like a C# app?

Upvotes: 0

Views: 59

Answers (1)

Iamsomeone
Iamsomeone

Reputation: 323

C++ and C# are very different, so each one will run in "its own way". C++ will run as a native compiled executable and C# will use the .NET runtime. Each part will run at its normal speed and will be reversibile just as if it were alone, so the C# part will be easier to decompile, while C++ (if the executable is stripped, of course) will be much harder to decompile.

Upvotes: 1

Related Questions