working c# emitting