Skip to content

Conversation

JeremyKuhne
Copy link
Member

@JeremyKuhne JeremyKuhne commented Mar 3, 2025

The autoconvert argument doesn't make sense when setting data as JSON as the only place this has any impact is with a fixed set of predefined formats (text for example). You shouldn't be setting known formats with this method.

Also add a more extensive comment to TryUnwrapUserDataObject.

Microsoft Reviewers: Open in CodeFlow

The autoconvert argument doesn't make sense when setting data as JSON as the only place this has any impact is with a fixed set of predefined formats (text for example). You shouldn't be setting known formats with this method.

Also add a more extensive comment to `TryUnwrapUserDataObject`.
@JeremyKuhne JeremyKuhne requested a review from a team as a code owner March 3, 2025 18:14
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.10527%. Comparing base (4bcc8a9) to head (6a263cc).
Report is 1 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                  @@
##                main      #13060          +/-   ##
====================================================
- Coverage   96.95044%   76.10527%   -20.84517%     
====================================================
  Files           1225        3275        +2050     
  Lines         357134      643803      +286669     
  Branches        5537       47445       +41908     
====================================================
+ Hits          346243      489968      +143725     
- Misses         10049      150280      +140231     
- Partials         842        3555        +2713     
Flag Coverage Δ
Debug 76.10527% <100.00000%> (-20.84517%) ⬇️
integration 18.04987% <100.00000%> (?)
production 50.13552% <100.00000%> (?)
test 96.95100% <ø> (+0.00055%) ⬆️
unit 47.53985% <100.00000%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

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

Could you please also add note about this change to #12362

@JeremyKuhne JeremyKuhne merged commit 8c1c98f into dotnet:main Mar 3, 2025
8 checks passed
@JeremyKuhne JeremyKuhne deleted the noautoconvert branch March 3, 2025 19:55
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview3 milestone Mar 3, 2025
LeafShi1 pushed a commit to LeafShi1/winforms that referenced this pull request Mar 6, 2025
The autoconvert argument doesn't make sense when setting data as JSON as the only place this has any impact is with a fixed set of predefined formats (text for example). You shouldn't be setting known formats with this method.

Also add a more extensive comment to `TryUnwrapUserDataObject`.
@github-actions github-actions bot locked and limited conversation to collaborators Apr 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants