.NET Native Deep Dive: Dynamic Features in Static Code

added by Paul Wheeler
5/27/2014 7:45:34 PM

8 Kicks, 160 Views

If you've read our previous blog posts on .NET Native, you might be wondering how all of this works. We've discussed the performance benefits of .NET Native and dug into the tool-chain but we never answered a basic question: how does .NET Native do dynamic things when it's compiling your code statically? A big part of the reason developers love .NET is the fact that you can do things like reflect on your code and call code on the fly. But when you're compiling all your code statically, as .NET Native does today, how does the compiler know what code your app might want to call at runtime? The answer is something called Runtime Directives.