Skip to content

Commit 18299b4

Browse files
SousanMovazzafBillWagner
andauthored
Update method-parameters.md (#42684)
* Update method-parameters.md In a sample code, when I pass a value type by reference, if the method assigns the parameter to refer to a different object, those changes are visible from the caller. * Update docs/csharp/language-reference/keywords/method-parameters.md --------- Co-authored-by: Bill Wagner <[email protected]>
1 parent 6a64191 commit 18299b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/language-reference/keywords/method-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ How an argument is passed, and whether it's a reference type or value type contr
3535
- If the method assigns the parameter to refer to a different object, those changes **aren't** visible from the caller.
3636
- If the method modifies the state of the object referred to by the parameter, those changes **are** visible from the caller.
3737
- When you pass a *value* type *by reference*:
38-
- If the method assigns the parameter to refer to a different object, those changes **aren't** visible from the caller.
38+
- If the method assigns the parameter to refer to a different object using `ref =`, those changes **aren't** visible from the caller.
3939
- If the method modifies the state of the object referred to by the parameter, those changes **are** visible from the caller.
4040
- When you pass a *reference* type *by reference*:
4141
- If the method assigns the parameter to refer to a different object, those changes **are** visible from the caller.

0 commit comments

Comments
 (0)