Skip to content

Conversation

cuppar
Copy link

@cuppar cuppar commented Jun 27, 2024

Summary

Describe your changes here.

Fixes #Issue_Number (if available)


Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/keywords/method-parameters.md Method Parameters

@cuppar cuppar requested a review from BillWagner as a code owner June 27, 2024 09:27
@dotnet-bot dotnet-bot added this to the June 2024 milestone Jun 27, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Jun 27, 2024
@BillWagner
Copy link
Member

BillWagner commented Jun 27, 2024

Hi @cuppar

I'm closing this, as the current text is correct. I've seen a couple PRs requesting this change, so maybe more explanation is needed.

The statement involves the = ref operator. Here's an example in sharplab

If you ref assign a variable, you're changing what it refers to. That's not visible outside of the method.

It is probably worth adding an example to this page, or linking to the operator page for = ref.

@BillWagner BillWagner closed this Jun 27, 2024
@cuppar
Copy link
Author

cuppar commented Jul 2, 2024

Oh, I must have misunderstood. I just started learning C#, and I thought the description here refers to a new value type, for example: sharplab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc lang-reference/subsvc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants