Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update docs for CompareExchange\<T>#11422

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
gewarren wants to merge4 commits intomain
base:main
Choose a base branch
Loading
fromgewarren-patch-1
Open

Conversation

gewarren
Copy link
Contributor

Fixes#11419.

Copy link

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the XML documentation for the CompareExchange methods by revising type parameter descriptions and summary texts. Key changes include:

  • Removing the explicit reference type constraint from the type parameter T.
  • Updating summary tags to use consistently.
  • Reformulating the remarks section to streamline the note about method overload preference.
Comments suppressed due to low confidence (2)

xml/System.Threading/Interlocked.xml:1344

  • The removal of the explicit reference type constraint on T may be intentional; consider adding a brief note explaining this change to clarify the updated usage.
<typeparam name="T">The type to be used for <paramref name="location1" />, <paramref name="value" />, and <paramref name="comparand" />.</typeparam>

xml/System.Threading/Interlocked.xml:2380

  • [nitpick] Consider retaining the [!NOTE] markup format for this note to maintain consistency with other documentation sections, if that aligns with the project's style guidelines.
This method overload is preferable to the <xref:System.Threading.Interlocked.Exchange%28System.Object%40%2CSystem.Object%29> method overload, because the latter requires late-bound access to the destination object.

@gewarrengewarren requested review froma team andBillWagnerJune 30, 2025 08:33
@jkotas
Copy link
Member

jkotas commentedJul 3, 2025
edited
Loading

This is a follow up for .NET 9 changedotnet/runtime#104558 .

@jkotasjkotas requested a review fromstephentoubJuly 3, 2025 21:55
@gewarrengewarrenenabled auto-merge (squash)July 15, 2025 01:21
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jkotasjkotasjkotas left review comments

Copilot code reviewCopilotCopilot left review comments

@BillWagnerBillWagnerAwaiting requested review from BillWagner

@stephentoubstephentoubAwaiting requested review from stephentoub

At least 1 approving review is required to merge this pull request.

Assignees

@gewarrengewarren

Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Summary for CompareExchange<T> should not mention reference types as of .NET 9
3 participants
@gewarren@jkotas@stephentoub

[8]ページ先頭

©2009-2025 Movatter.jp