C# Syntax

  • Thread starter Thread starter Douglas Gage
  • Start date Start date
D

Douglas Gage

How can I do this in one line

foreach((string answer in myansList) && (string qKey in qKeyList))
{
//do something
}

Thanks
 
You can't, you will have to write a custom IEnumerator that performs the
work. You may also be able to find one on gotdotnet or codeproject.
 
Back
Top