Restrictions of yield in try-catch.

 Posted by Bhakti on 12/15/2009 | Category: C# Interview questions | Views: 6866
Answer:

While using yield keyword, mainly two restrictions are observed.
First is , we can’t use yield in finally.
Second is , we can’t place yield keyword in the catch block if try contains more than one catch blocks.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response