I know that it\'s possible to compile my C code into a dll, and then use P/Invoke to call that code.
What I wondered if it was possible to have a chunk of C code emb
It is possible to create a mixed-mode assembly (that is, one that has both managed and native code), but only the C++/CLI compiler can produce one of these. What you're looking to do is not supported by the C# compiler.