Occasionally, read the essence of the .NET framework, feeling from the development procedures from now, it is also a filling problem for Gates! Don't believe, you will come to see what Microsoft has done?
A .NET application actually has some .NET or CLR extension on the traditional Windows PE. When starting requesting runtime (eg, you double-click Application), OS Loader loads program files in accordance with the old way. It is also the above-mentioned extension, making it an early guys _corexemain immediately launched the CLR and gain control. Please remember that we will start to fill in the blank.
The CLR is now looking for a door called Static Void Main (). After finding the CLASS Loader using the CLR, it will load its class. Next is the authentication code security, JIT compile, and finally the Native Code of your hard-written code.
Next, Class Loader and Native Code are repeated, carry, check, translation, execution!
STOP!
CLR is more witty, it will automatically make a stub, if the stub indicates that it has been used, and it is found according to the address provided.
Oh, the original problem has not been written, it seems to improve writing!