Detailed course structure for each branch and semister
Syllabus for each semester subjects
Previous Mid Exam Question Papers
Previous Semesters Final Exam Question Papers
Read all .NET articles
Read all .NET Interview Objective Questions
Read all .NET Interview Questions
What is the use of C# 'yield' keyword?
Let the calling method resume control and call back later.
Signals to the compiler that the method in which it appears is an iterator block and the yield keyword is used together with the return keyword to provide a value to the enumerator object
Allows conditional branching within a method
Used in an iterator block to provide a value to the enumerator object or to signal the end of iteration. It takes one of the following forms:
yield return [expression];