I am cleaning the old code and found following Dynamic Loop.
foreach (var obj in listValues.Where(x => x.Valid == false))
{
}
I have a question that, the performance will be increase of following code as compare to above loop?
var myList = listValues.Where(x => x.Valid == false);
foreach (var obj in myList)
{
}