I would like to translate this:
foreach(Control c in Controls)
{
if(c is TextBox)
{
// ...
}
}
Into:
foreach(Control c => (c is TextBox) in Controls)
{
// ...
}
How can it be done using the lambda function specifically?