ECMA-334: 12.3.3.12 Return statements
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
12.3.3.12 Return statements
For a statement stmt of the form
returnexpr;
- The definite assignment state of v at the beginning of expr is the same as the definite assignment state of v at the beginning of stmt.
- If v is an output parameter, then it shall be definitely assigned either:
- after expr
- or at the end of the
finallyblock of atry-finallyortry-catch-finallythat encloses thereturnstatement.
- or at the end of the
For a statement stmt of the form:
return ;
- If v is an output parameter, then it shall be definitely assigned either:
- before stmt
- or at the end of the
finallyblock of atry-finallyortry-catch-finallythat encloses thereturnstatement.
- or at the end of the