The enumerable returned is implemented as an iterator block (i.e., a method that uses yield
).
Code inside iterator blocks does not actually execute until they are enumerated for the first time, so you won't see anything happen if you don't actually do anything with the IEnumerable
.