public
Created

Generated yielding getIds()-Method.

  • Download Gist
YieldingFinder.cs
C#
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
[CompilerGenerated]
private sealed class <getIds>d__0 : IEnumerable<int>, IEnumerable, IEnumerator<int>, IEnumerator, IDisposable
{
// Fields
private int <>1__state;
private int <>2__current;
public YieldingFinder <>4__this;
private int <>l__initialThreadId;
 
// Methods
[DebuggerHidden]
public <getIds>d__0(int <>1__state)
{
this.<>1__state = <>1__state;
this.<>l__initialThreadId = Thread.CurrentThread.ManagedThreadId;
}
 
private bool MoveNext()
{
switch (this.<>1__state)
{
case 0:
this.<>1__state = -1;
if (this.<>4__this._executed)
{
throw new ApplicationException("booom!");
}
this.<>4__this._executed = true;
this.<>2__current = 1;
this.<>1__state = 1;
return true;
 
case 1:
this.<>1__state = -1;
break;
}
return false;
}
 
[DebuggerHidden]
IEnumerator<int> IEnumerable<int>.GetEnumerator()
{
if ((Thread.CurrentThread.ManagedThreadId == this.<>l__initialThreadId) && (this.<>1__state == -2))
{
this.<>1__state = 0;
return this;
}
YieldingFinder.<getIds>d__0 d__ = new YieldingFinder.<getIds>d__0(0);
d__.<>4__this = this.<>4__this;
return d__;
}
 
[DebuggerHidden]
IEnumerator IEnumerable.GetEnumerator()
{
return this.System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator();
}
 
[DebuggerHidden]
void IEnumerator.Reset()
{
throw new NotSupportedException();
}
 
void IDisposable.Dispose()
{
}
 
// Properties
int IEnumerator<int>.Current
{
[DebuggerHidden]
get
{
return this.<>2__current;
}
}
 
object IEnumerator.Current
{
[DebuggerHidden]
get
{
return this.<>2__current;
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.