You could write a C# marshaller, but again that uses the Arduino-Library for the ESP8266 and not for the .net micro-framework. So, I just don't think its possible. However, it would be much easier if you use C++ with Visual Studio's plugin Visual Micro for programming instead of using the native Arduino IDE for writing codes.