title: How can I execute C code inside a .NET application?
body: <p>I'm into Embedded Software development, and write pure C code which are hardware device dependent.</p>
  
  <p>Before our hardware device gets ready, I need to complete application modules of our embedded software, which won't be directly hardware dependent.</p>
  
  <p>Is there any way where I can write and execute C code in a .NET environment (VC++ or C#), have some UI for simulating the application, debug with breakpoints and watches and once the logic is proven, get the C files and port those to hardware (of course with modified interfaces)?</p>
  
  <p>Since I'm not an expert in .NET, I'm not sure if this can be done. 
  If yes, what approach do people use?</p>