| Author |
Message |
matzeook
Joined: 13 Jan 2012 Posts: 1
|
Posted: Fri Jan 13, 2012 5:18 pm Post subject: Decompile Iterator blocks |
|
|
I just downloaded the 7.4.1.193 Reflector trial version and tried to decompile an test assembly including the IteratorSample Method from your web site.
http://www.reflector.net/vspro/
| Code: |
public static IEnumerable<int>IteratorSample()
{
for (int i = 0; i < 10; i++)
{
yield return i;
}
}
|
Decompiling this code results in
[CompilerGenerated]
private sealed class <IteratorSample>d__0 : IEnumerable<int>, IEnumerable, IEnumerator<int>, IEnumerator, IDisposable
....
and all those
private int <>1__state
private int <>2__current;
private int <>l__initialThreadId;
public int <i>5__1;
...
members.
Is this a bug?
The LamdaExample and LinqSample were decompiled as they are in source code. |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group