Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specification


12 Variables
12.1 Variable categories
12.1.5 Reference parameters
Paragraph 11 A parameter declared with a ref modifier is a reference parameter.
Paragraph 21 A reference parameter does not create a new storage location. 2 Instead, a reference parameter represents the same storage location as the variable given as the argument in the function member invocation. 3 Thus, the value of a reference parameter is always the same as the underlying variable.
Paragraph 31 The following definite assignment rules apply to reference parameters. [Note: The rules for output parameters are different, and are described in §12.1.6. end note] - 2 A variable must be definitely assigned (§12.3) before it can be passed as a reference parameter in a function member invocation.
- 3 Within a function member, a reference parameter is considered initially assigned.
Paragraph 41 Within an instance method or instance accessor of a struct type, the this keyword behaves exactly as a reference parameter of the struct type (§14.5.7). |
Jagger Software Ltd |
Company # 4070126 |
VAT # 762 5213 42 |

