C# emulator