Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is it possible to see C# code after compilation/optimization?

I was reading about the yield keyword when I came across a sample chapter from C# in Depth: http://csharpindepth.com/Articles/Chapter6/IteratorBlockImplementation.aspx.

The first block of code utilizes the yield keyword to make a simple iterator. But, the second block of code shows this code after the compiler has had its way with it. Among other things, it has exploded the yield statement into a state machine.

Several other examples of code being modified by the compiler is evident on the page.

My question is: Was the author actually able to access the code after compilation, or did he infer what it was going to look like?

like image 294
Chris Laplante Avatar asked Dec 15 '10 23:12

Chris Laplante


People also ask

Can you see K2 comet without a telescope?

But not with the naked eye: Experts say people will need at least a small telescope or binoculars to see it. At a distance of about 170 million miles from Earth, Jewitt warned stargazers that the K2 comet will still be quite far away.

When can I see K2 comet?

The comet's backstory At the time, they said it was the farthest active inbound comet they'd yet seen. It was located between the orbits of Saturn and Uranus when they first saw it. It made its closest approach to Earth on July 14. The comet will be closest to the sun on December 19, 2022.

How can I see the comet?

Visibility will be best through binoculars or a telescope, and in dark sky areas. Find more night sky viewing tips here.

Can we see K2 comet from India?

This large (18 km or less, assuming data from HST) comet will not be visible by naked eye, as it will stay very far from us. The Virtual Telescope Project will show it live, online: this way, you can have a look from the comfort of your home.


1 Answers

You can have a look using Reflector, that's probably your best bet:

http://reflector.red-gate.com

like image 128
Chris Avatar answered Oct 23 '22 09:10

Chris