-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ref
fields and scoped
. Modify pages on struct creation, variable declaration, and ref struct.
#30912
Conversation
4b192d6
to
1f86add
Compare
a9de4e8
to
e2c87c4
Compare
e90bee5
to
2af2dbd
Compare
cac1ec8
to
889bb23
Compare
@Youssef1313 Is there a tag for the F1 help for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, well done. I had a few nits, questions, and suggestions.
docs/csharp/language-reference/operators/assignment-operator.md
Outdated
Show resolved
Hide resolved
I'm not sure. I added a test in dotnet/roslyn#64094 and will see what CI says :) |
Update all links to sections that have moved.
Move the pass by reference and pass by value sections of the programming guide to the C# language reference.
Update samples, provide better definition for passing reference parameters and value parameters by reference or by value.
Not happy with them yet, but there's it's a start.
- Move `var` article to form the core of the new "Declaration statements" article. - Add content from Programming guide article on "ref returns and ref locals" to new declaration article. - Add content from Prog Guide article on "ref returns" (same article) to the section on `return` in the Jump statements article.
Move all samples from the /samples/snippets folder under the current folder.
Define value assignment and ref assignment.
The scoped modifier limits the lifetime of the modified variable
Co-authored-by: David Pine <[email protected]>
Co-authored-by: David Pine <[email protected]>
namespace name changes
d3aeb0b
to
b7da93f
Compare
closing and reopening for a fresh build |
Fixes #30226
#30226 (comment) describes the tasks in this PR. The commits follow the task list.
Internal review site:
ref struct
content removed.ref struct
content from struct article.ref
keyword: Update and edit article to add new ref fields.var
,ref
locals andref
fields.ref
assignment.scoped
contextual keywordChanges in other files are primarily updating links and link text.
Note for reviewers: The articles tagged above have the significant changes. Samples moved to the updated folders. Almost all other article changes were updating links to updated content for the language reference.