Auto properties in c#, what the compiler does for you.
Published on Feb 18, 2009If you ever wonder what the compiler does to make the auto properties work let’s take a look at the code the way Reflector sees it. Let’s write some very useful code :-)
Compiler this hitting F5 and them open the dll using Reflector. And this is what you will see.
Of course this is not exactly what the compiler does, since that will be IL. But is the way Reflector shows it as C# code. Interesting, isn’t it?
If you are wondering changing the settings in Reflector to actually shows IL get this: