I have a foreach that calls a method to get its collection.
foreach(var item in GetItemDetails(item)) { }
Visual Studio does not complain about this, and Resharper, however, before I continue to use this approach, I want to contact and check if this is the recommended approach.
c # foreach
CSharpNewBee
source share