public IILEvent DefineEvent(string name, EventAttributes eventAttributes, Type type) { CloseInScope(); _sourceCodeWriter.WriteLine($"event {type.ToSimpleName()} {name};"); return new ILEventDebugImpl(_typeBuilder.DefineEvent(name, eventAttributes, type)); }