George George

George George

  • NA
  • 778
  • 0

C# compiler expand our code?

May 1 2008 9:06 AM

Hello everyone,


How could we see the C# compiler expand our code (I mean at source code level, not using ILDasm to see at IL level or using Diassembly at native assembly code level)?

For example, this is how foreach is expanded in C#.

http://www.csharpfriends.com/Spec/index.aspx?specID=15.8.4.htm


thanks in advance,
George