Some work on C#, not working yet.

Signed-off-by: Ian bell <ian.h.bell@gmail.com>