We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ea0591 commit 7a0fa62Copy full SHA for 7a0fa62
1 file changed
GameFrameX.Foundation.Extensions/StringExtensions.cs
@@ -150,7 +150,7 @@ public static int GetDisplayWidth(this string text)
150
/// 例如:"HelloWorld"转换为"hello_world","IsValid"转换为"is_valid"。
151
/// 当字符串中已包含下划线时,直接返回原字符串。
152
/// </remarks>
153
- public static string ConvertToUnderLine(string str, bool isToUpper = false)
+ public static string ConvertToUnderLine(this string str, bool isToUpper = false)
154
{
155
ArgumentNullException.ThrowIfNull(str, nameof(str));
156
if (str.Contains('_'))
0 commit comments