csharp wrapper for flat assembler