Red Gate forums :: View topic - Decompile Iterator blocks
Return to RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.NET Reflector 7.0 Feedback
.NET Reflector 7.0 Feedback forum

Decompile Iterator blocks

Search in .NET Reflector 7.0 Feedback forum
Post new topic   Reply to topic
Jump to:  
Author Message

Joined: 13 Jan 2012
Posts: 1

PostPosted: Fri Jan 13, 2012 5:18 pm    Post subject: Decompile Iterator blocks Reply with quote

I just downloaded the Reflector trial version and tried to decompile an test assembly including the IteratorSample Method from your web site.


public static IEnumerable<int>IteratorSample()
            for (int i = 0; i < 10; i++)
                yield return i;

Decompiling this code results in

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;

Is this a bug?
The LamdaExample and LinqSample were decompiled as they are in source code.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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