Skip to content
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

Caller argument expression #26782

Merged
merged 7 commits into from
Nov 3, 2021

Conversation

BillWagner
Copy link
Member

Fixes #25680

This adds a description of the CallerArgumentExpression in the language reference.

Also notice that the index doesn't show C# 10, but shows the C# 9.0 release as latest.
Copy link
Contributor

@KathleenDollard KathleenDollard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than one mistake in an exception name. I also had opinions.

docs/csharp/whats-new/csharp-10.md Outdated Show resolved Hide resolved
}
```

You can learn more about this feature in the article on [Caller information attributes](../language-reference/attributes/caller-information.md#argument-expressions) in the language reference section.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is hte article I flagged in an issue as needing review. Or maybe I didn't save that as you said you were working on this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's dotnet/dotnet-api-docs#26784

If I'm correct, this will get updated when we update to RC2. @gewarren can confirm.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BillWagner I think you meant #26784. Can you confirm that the attribute is implemented in the compiler now? If so, we'll need to manually remove the note block.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I did. Thanks @gewarren

Yes, this is implemented in the compiler now, as of the current public RC for .NET 6.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some suggestions for consideration.

BillWagner and others added 3 commits November 3, 2021 07:22
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Kathleen Dollard <kathleen.dollard@microsoft.com>
@BillWagner BillWagner merged commit 82ce6fa into dotnet:main Nov 3, 2021
@BillWagner BillWagner deleted the caller-argument-expression branch November 3, 2021 13:18
@cremor
Copy link

cremor commented Nov 4, 2021

@BillWagner On the top of the "What's new in C# 10.0" page there is a list of items. It looks like a table of contents but isn't. You didn't add a link to your new chapter there, was this on purpose?

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

Successfully merging this pull request may close these issues.

Caller argument expression
6 participants