Skip to content

Conversation

JeremyKuhne
Copy link
Member

@JeremyKuhne JeremyKuhne commented Feb 19, 2025

Handle XAML data format.

For clarity, break helpers into three different text formats and add an HGLOBAL scope.

Microsoft Reviewers: Open in CodeFlow

Handle XAML data format.

For clarity, break helpers into three different text formats and add an HGLOBAL scope.
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

Attention: Patch coverage is 80.88235% with 13 lines in your changes missing coverage. Please review.

Project coverage is 75.98474%. Comparing base (c06d22c) to head (4962241).
Report is 5 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12975         +/-   ##
===================================================
+ Coverage   75.98468%   75.98474%   +0.00006%     
===================================================
  Files           3265        3266          +1     
  Lines         643356      643345         -11     
  Branches       47433       47429          -4     
===================================================
- Hits          488852      488844          -8     
- Misses        150943      150945          +2     
+ Partials        3561        3556          -5     
Flag Coverage Δ
Debug 75.98474% <80.88235%> (+0.00006%) ⬆️
integration 18.03699% <33.82353%> (+0.00628%) ⬆️
production 49.88922% <80.88235%> (-0.00088%) ⬇️
test 96.95014% <ø> (ø)
unit 47.32124% <80.88235%> (-0.02436%) ⬇️

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

_buffer = new((byte*)_pointer, (int)length);
}

public HRESULT Status { get; private set; } = HRESULT.S_OK;
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider naming this property HResult to indicate the type

Copy link
Member Author

Choose a reason for hiding this comment

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

Generally speaking, properties should not be repeating the type. "Result" would be a good name normally, but in this case it is disconnected from the constructor method so I went with "Status". The other option was to have a static method that outs the HRESULT (which I still might do, as ComScope does). The struct itself has to be the return as otherwise writing the using is very awkward.

@JeremyKuhne JeremyKuhne merged commit 170c401 into dotnet:main Feb 19, 2025
8 checks passed
@JeremyKuhne JeremyKuhne deleted the handlexaml branch February 19, 2025 17:49
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview3 milestone Feb 19, 2025
LeafShi1 pushed a commit to LeafShi1/winforms that referenced this pull request Mar 6, 2025
Handle XAML data format.

For clarity, break helpers into three different text formats and add an HGLOBAL scope.
@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 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