IEnumerable and Datareader 'Yield return' issue

Recently, while working on one of my organization’s project. We wrote a generic extension method on the data reader class that returns the IEnumerable of the generic type.So, essentially what this does is returns an IEnumberable of the objects after reading various values from the datareader.(Dont ask me why are we doing this, why aren’t we using any ORM. We still want to use legacy data [Read More]