One way to do it is to build your C code as (.dll) then add that file to your C# references and call the functions you want.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)