c# - Unusual code by the decompiler -
i tried decompile .cs file through telerik decompiler , changed event handler's code unusual.
private void start_click_1(object sender, routedeventargs e) { windowsruntimemarshal.addeventhandler<eventhandler<object>>(new func<eventhandler<object>, eventregistrationtoken>(dispatchertimer.add_tick), new action<eventregistrationtoken>(dispatchertimer.remove_tick), new eventhandler<object>(this.timer_tick)); } private void timer_tick(object sender, object e) { }
i don't know how change normal. can me this?
it seems that's new coming along windows runtime. maybe decompiler isn't able cope that.
regarding information linked above code should translate into:
private void start_click_1(object sender, routedeventargs e) { dispatchertimer.tick += timer_tick; } private void timer_tick(object sender, object e) { }
Comments
Post a Comment