Why method assigns the parameter to refer to a different object aren't visible from the caller, when pass a value type by reference? #41087
Labels
doc-enhancement
Improve the current content [org][type][category]
dotnet-csharp/svc
lang-reference/subsvc
Pri1
High priority, do before Pri2 and Pri3
Type of issue
Typo
Description
Does it mean such method as
void foo(ref int num)
is not reasonable? I can not got it.Page URL
https://learn.microsoft.com/zh-cn/dotnet/csharp/language-reference/keywords/method-parameters
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/keywords/method-parameters.md
Document Version Independent Id
7241f712-8d73-b5e0-37c0-5f05c92412c6
Article author
@BillWagner
Metadata
The text was updated successfully, but these errors were encountered: