Problem
The predefined named Color static properties in src/Mono.Android/Android.Graphics/Color.cs (e.g. Color.Red, Color.DarkSlateGray, Color.Violet) ship in the public Mono.Android.dll but have no /// XML documentation. Developers consuming these convenience colors get no IntelliSense/summary, and the build can emit CS1591 for undocumented public members.
Location
- File(s):
src/Mono.Android/Android.Graphics/Color.cs
- Line(s): the block of named-color static properties, approximately lines 278-418 (
Transparent through YellowGreen)
Current Code
public static Color Transparent { get { return new Color (0x000000); } }
public static Color AliceBlue { get { return new Color (0xFFF0F8FF); } }
// ...
public static Color Violet { get { return new Color (0xFFEE82EE); } }
public static Color White { get { return new Color (0xFFFFFFFF); } }
public static Color YellowGreen { get { return new Color (0xFF9ACD32); } }
Suggested Fix
Add a concise <summary> to each named-color property describing the color and its ARGB value. For example:
/// <summary>Gets a <see cref="Color" /> with the ARGB value #FFEE82EE (violet).</summary>
public static Color Violet { get { return new Color (0xFFEE82EE); } }
/// <summary>Gets a fully transparent <see cref="Color" /> (ARGB #00000000).</summary>
public static Color Transparent { get { return new Color (0x000000); } }
Apply the same pattern to every named-color property in that block. Keep summaries one line and mention the hex ARGB value shown in the existing code.
Guidelines
- This is purely additive documentation — do not change any runtime values or behavior.
- Follow dotnet/android formatting: tabs for indentation, space before
(.
- Use
<see cref="Color" /> where referencing the type.
- Only modify the named-color property block; do not touch other members or the
ColorValueMarshaler.
Acceptance Criteria
Fix-finder metadata
- Script:
04-missing-xml-docs
- Score:
26/30 (actionability: 10, safety: 10, scope: 6)
Generated by Nightly Fix Finder · 54.2 AIC · ⌖ 19.8 AIC · ⊞ 9.4K · ◷
Problem
The predefined named
Colorstatic properties insrc/Mono.Android/Android.Graphics/Color.cs(e.g.Color.Red,Color.DarkSlateGray,Color.Violet) ship in the publicMono.Android.dllbut have no///XML documentation. Developers consuming these convenience colors get no IntelliSense/summary, and the build can emit CS1591 for undocumented public members.Location
src/Mono.Android/Android.Graphics/Color.csTransparentthroughYellowGreen)Current Code
Suggested Fix
Add a concise
<summary>to each named-color property describing the color and its ARGB value. For example:Apply the same pattern to every named-color property in that block. Keep summaries one line and mention the hex ARGB value shown in the existing code.
Guidelines
(.<see cref="Color" />where referencing the type.ColorValueMarshaler.Acceptance Criteria
<summary>XML doc comment.Fix-finder metadata
04-missing-xml-docs26/30(actionability: 10, safety: 10, scope: 6)