ECMA-334: 12.3.3.28 Yield statements

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
C# Language Specification
© 2006 ECMA International

12.3.3.28 Yield statements

For a yield return statement stmt of the form:

yield return expr ;
  • A variable v has the same definite assignment state at the beginning of expr as at the beginning of stmt.
  • If a variable v is definitely assigned at the end of expr, it is definitely assigned at the end point of stmt; otherwise, it is not definitely assigned at the end point of stmt.

Today's Deals: Electronics

Personal tools