Skip to content

Commit 40320c3

Browse files
reck1610pictos
andcommitted
Typo and add the attribute to hide this method from intellisense
Co-authored-by: Pedro Jesus <[email protected]>
1 parent 7cabea1 commit 40320c3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/CommunityToolkit.Maui.Core/Extensions/ColorConversionExtensions.shared.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public static string ToRgbString(this Color color)
4545
/// and <b>alpha</b> is a value between 0 and 1. (e.g. <c>RGBA(255,0,0,1)</c> for <see cref="Colors.Red"/>).
4646
/// </returns>
4747
/// <exception cref="ArgumentNullException">Thrown when <paramref name="color"/> is null.</exception>
48-
[Obsolete("Dont use CultureInfo this method should be culture invariant")]
48+
[EditorBrowsable(EditorBrowsableState.Never)]
49+
[Obsolete("Do not use CultureInfo, this method should be culture invariant.")]
4950
public static string ToRgbaString(this Color color, CultureInfo? cultureInfo) => ToRgbaString(color);
5051

5152

@@ -90,7 +91,8 @@ public static string ToCmykString(this Color color)
9091
/// </returns>
9192
/// <exception cref="ArgumentNullException">Thrown when <paramref name="color"/> is null.</exception>
9293

93-
[Obsolete("Dont use CultureInfo this method should be culture invariant")]
94+
[EditorBrowsable(EditorBrowsableState.Never)]
95+
[Obsolete("Do not use CultureInfo, this method should be culture invariant.")]
9496
public static string ToCmykaString(this Color color, CultureInfo? cultureInfo) => ToCmykaString(color);
9597

9698
/// <summary>
@@ -133,7 +135,8 @@ public static string ToHslString(this Color color)
133135
/// will be a value between 0% and 100%, and <b>alpha</b> will be a value between 0 and 1. (e.g. <c>HSLA(0,100%,50%,1)</c> for <see cref="Colors.Red"/>).
134136
/// </returns>
135137
/// <exception cref="ArgumentNullException">Thrown when <paramref name="color"/> is null.</exception>
136-
[Obsolete("Dont use CultureInfo this method should be culture invariant")]
138+
[EditorBrowsable(EditorBrowsableState.Never)]
139+
[Obsolete("Do not use CultureInfo, this method should be culture invariant.")]
137140
public static string ToHslaString(this Color color, CultureInfo? cultureInfo) => ToHslaString(color);
138141

139142
/// <summary>

0 commit comments

Comments
 (0)