Can C# be used and how to go about it

First can C# even be used

Short answer: Nope, sorry.

Longer answer: You can potentially find a compiler that outputs to JS and just write the JS boilerplate to make it work with the engine. However, if you know C#, it won’t take long to pick up JS IME.