This video explains
Why isn’t IEnumerable consumed?/how do generators work in c# compared to python
—
Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn
—
Track title: CC B Schuberts Piano Sonata No 16 D
—
Chapters
00:00 Question
02:10 Accepted answer (Score 14)
02:48 Answer 2 (Score 7)
04:05 Answer 3 (Score 3)
05:38 Answer 4 (Score 2)
08:54 Thank you
—
Full question
https://stackoverflow.com/questions/23410732/why-isnt-ienumerable-consumed-how-do-generators-work-in-c-compared-to-python
Question links:
[http://dotnetfiddle.net/W5Cbv6]: http://dotnetfiddle.net/W5Cbv6
[File.ReadLines]: http://msdn.microsoft.com/en-us/library/dd383503%28
Answer 1 links:
[MSDN]: http://msdn.microsoft.com/en-us/library/system.collections.ienumerable.aspx
[GetEnumerator]: http://msdn.microsoft.com/en-us/library/system.collections.ienumerable.getenumerator.aspx
[dotnetfiddle]: http://dotnetfiddle.net/b9U0xH
Answer 2 links:
[Enumerators do not implicitly lock the collection]: http://msdn.microsoft.com/en-us/library/system.collections.ienumerable.getenumerator.aspx
[yield]: http://msdn.microsoft.com/en-us/library/9k7k7cf0.aspx
—
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/licensing
—
Tags
#c# #python #iteration #coroutine
#avk47