|
1 | | -using System.Globalization; |
| 1 | +using System.ComponentModel; |
| 2 | +using System.Globalization; |
2 | 3 |
|
3 | 4 | namespace CommunityToolkit.Maui.Core.Extensions; |
4 | 5 |
|
@@ -45,7 +46,8 @@ public static string ToRgbString(this Color color) |
45 | 46 | /// 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"/>). |
46 | 47 | /// </returns> |
47 | 48 | /// <exception cref="ArgumentNullException">Thrown when <paramref name="color"/> is null.</exception> |
48 | | - [Obsolete("Dont use CultureInfo this method should be culture invariant")] |
| 49 | + [EditorBrowsable(EditorBrowsableState.Never)] |
| 50 | + [Obsolete("Do not use CultureInfo, this method should be culture invariant.")] |
49 | 51 | public static string ToRgbaString(this Color color, CultureInfo? cultureInfo) => ToRgbaString(color); |
50 | 52 |
|
51 | 53 |
|
@@ -90,7 +92,8 @@ public static string ToCmykString(this Color color) |
90 | 92 | /// </returns> |
91 | 93 | /// <exception cref="ArgumentNullException">Thrown when <paramref name="color"/> is null.</exception> |
92 | 94 |
|
93 | | - [Obsolete("Dont use CultureInfo this method should be culture invariant")] |
| 95 | + [EditorBrowsable(EditorBrowsableState.Never)] |
| 96 | + [Obsolete("Do not use CultureInfo, this method should be culture invariant.")] |
94 | 97 | public static string ToCmykaString(this Color color, CultureInfo? cultureInfo) => ToCmykaString(color); |
95 | 98 |
|
96 | 99 | /// <summary> |
@@ -133,7 +136,8 @@ public static string ToHslString(this Color color) |
133 | 136 | /// 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"/>). |
134 | 137 | /// </returns> |
135 | 138 | /// <exception cref="ArgumentNullException">Thrown when <paramref name="color"/> is null.</exception> |
136 | | - [Obsolete("Dont use CultureInfo this method should be culture invariant")] |
| 139 | + [EditorBrowsable(EditorBrowsableState.Never)] |
| 140 | + [Obsolete("Do not use CultureInfo, this method should be culture invariant.")] |
137 | 141 | public static string ToHslaString(this Color color, CultureInfo? cultureInfo) => ToHslaString(color); |
138 | 142 |
|
139 | 143 | /// <summary> |
|
0 commit comments