ECMA-334: 12.3.3.28 Yield statements
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
12.3.3.28 Yield statements
For a yield return statement stmt of the form:
yield returnexpr;
- 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.