1: [CompilerGenerated]
2: private sealed class <YieldReturnSample3>d__0 : IEnumerable<int>, IEnumerable, IEnumerator<int>, IEnumerator, IDisposable
3: { 4: // Fields
5: private int <>1__state;
6: private int <>2__current;
7: public int <>3__end;
8: public int <>3__start;
9: private int <>l__initialThreadId;
10: public int <current>5__1;
11: public bool <match>5__2;
12: public int end;
13: public int start;
14:
15: // Methods
16: [DebuggerHidden]
17: public <YieldReturnSample3>d__0(int <>1__state)
18: { 19: this.<>1__state = <>1__state;
20: this.<>l__initialThreadId = Thread.CurrentThread.ManagedThreadId;
21: }
22:
23: private bool MoveNext()
24: { 25: switch (this.<>1__state)
26: { 27: case 0:
28: this.<>1__state = -1;
29: this.<current>5__1 = 1;
30: while (this.<current>5__1 <= 100)
31: { 32: this.<match>5__2 = false;
33: if ((this.<current>5__1 % 2) == 0)
34: { 35: this.<match>5__2 = true;
36: }
37: if ((this.<current>5__1 % 3) == 0)
38: { 39: this.<match>5__2 = true;
40: }
41: if (!this.<match>5__2)
42: { 43: goto Label_0098;
44: }
45: this.<>2__current = this.<current>5__1;
46: this.<>1__state = 1;
47: return true;
48: Label_0090:
49: this.<>1__state = -1;
50: Label_0098:
51: this.<current>5__1++;
52: }
53: break;
54:
55: case 1:
56: goto Label_0090;
57: }
58: return false;
59: }
60:
61: [DebuggerHidden]
62: IEnumerator<int> IEnumerable<int>.GetEnumerator()
63: { 64: Program.<YieldReturnSample3>d__0 d__;
65: if ((Thread.CurrentThread.ManagedThreadId == this.<>l__initialThreadId) && (this.<>1__state == -2))
66: { 67: this.<>1__state = 0;
68: d__ = this;
69: }
70: else
71: { 72: d__ = new Program.<YieldReturnSample3>d__0(0);
73: }
74: d__.start = this.<>3__start;
75: d__.end = this.<>3__end;
76: return d__;
77: }
78:
79: [DebuggerHidden]
80: IEnumerator IEnumerable.GetEnumerator()
81: { 82: return this.System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator();
83: }
84:
85: [DebuggerHidden]
86: void IEnumerator.Reset()
87: { 88: throw new NotSupportedException();
89: }
90:
91: void IDisposable.Dispose()
92: { 93: }
94:
95: // Properties
96: int IEnumerator<int>.Current
97: { 98: [DebuggerHidden]
99: get
100: { 101: return this.<>2__current;
102: }
103: }
104:
105: object IEnumerator.Current
106: { 107: [DebuggerHidden]
108: get
109: { 110: return this.<>2__current;
111: }
112: }
113: }