CodeProject This article explains the in-depth analysis of how the c sharp yield keyword works under the hood. If you don't have any idea about yield keyword or never used it before, check out my post on Iterators in c# . Using Iterators is easy, but it's always good to know how this thing works under the hood, right?.