I'm having confusion between usual compilation and JIT. And would like to ask with an example.
Let's say we have a WinForms or WPF GUI application running. Does JIT happen when I click on the button? In other words when an event happens in a running .Net application, does the compilation take place at that moment(when we click on the button) or all JIT already happens during the execution(when we clicked on the exe file to start the program)?