If you get latest on metasploit framework, you can now use msfpayload/msfvenom to generate a C# byte array containing the payload that you may copy into your source file:
msfpayload windows/exec CMD=calc.exe H
msfpayload windows/exec CMD=calc.exe H