We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41bff47 commit d52e687Copy full SHA for d52e687
IteratorPattern/Program.cs
@@ -43,19 +43,19 @@ public void Remove(RadioStation station)
43
44
public IEnumerator<RadioStation> GetEnumerator()
45
{
46
- return mStations.GetEnumerator();
+ return this.GetEnumerator();
47
}
48
49
IEnumerator IEnumerable.GetEnumerator()
50
51
//Use can switch to this internal collection if you do not want to transform
52
- //return this.GetEnumerator();
+ return mStations.GetEnumerator();
53
54
//use this if you want to transform the object before rendering
55
- foreach (var x in mStations)
56
- {
57
- yield return x;
58
- }
+ //foreach (var x in mStations)
+ //{
+ // yield return x;
+ //}
59
60
61
0 commit comments