Create a DLL project in C++ that contains your method(s).

Use DLLImport to call your methods from your C# code.

Example here:
http://www.codeguru.com/csharp/cshar...cle.php/c4217/