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/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.
http://www.reflector.net/vspro/
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.