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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top