Add XML documentation to Android.Graphics.Color static component-accessor methods - #11649
Merged
Merged
Conversation
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add XML documentation to Color static methods
Add XML documentation to Android.Graphics.Color static component-accessor methods
Jun 12, 2026
jonathanpeppers
marked this pull request as ready for review
June 12, 2026 20:19
Contributor
There was a problem hiding this comment.
Pull request overview
Adds missing XML documentation for Android.Graphics.Color’s static ARGB component accessor methods so IntelliSense describes the expected packed int input and the 0–255 component return range, aligning these APIs with the already-documented instance component access patterns.
Changes:
- Added
<summary>,<param>, and<returns>XML doc comments toGetAlphaComponent,GetRedComponent,GetGreenComponent, andGetBlueComponent. - Referenced
<see cref="ToArgb"/>as an example source for the packed ARGB integer. - No behavioral/code changes to the methods themselves.
jonathanpeppers
approved these changes
Jun 15, 2026
jonathanpeppers
approved these changes
Jun 15, 2026
simonrozsival
approved these changes
Jun 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The four static component-accessor methods on
Android.Graphics.Color(GetAlphaComponent,GetRedComponent,GetGreenComponent,GetBlueComponent) lacked XML documentation, leaving IntelliSense without any hint about the expectedcolorargument or the0–255return range. These are the static counterparts to theA/R/G/Binstance properties documented in #11581.Changes
<summary>,<param>, and<returns>doc comments to all four static accessor methods insrc/Mono.Android/Android.Graphics/Color.cs.<see cref="ToArgb"/>references resolve to the existing instance method, avoidingCS1574warnings.#region/#endregionmarkers preserved.