Csharp codec - still in progress