visual c++ - inline C in C# and compilation? -


is possible write majority of program in c# , drop down , functions/objects in c or c++?

i know can call pre-compiled .dlls c#; can 'inline' native c directly c#? have "managed" .dlls?

if not, i'm assuming there jni interface?

also, question; can compile c# down "native" machine code?

msvs2010/win7 if matters.

you can't inline c code in c# - if want write part of code in c need cross sort of interop layer in order call c code, example p/invoke or managed c++.

you can inline c (or assembly) in managed c++, allowing combine native code , managed code in single assembly / dll.

for .net equivalent of jni, (native code calling managed code) normal method either use com interop or managed c++ - can host clr, less common.

as compiling c# down "native" machine code, read on ngen.


Comments