优化代码生成

This commit is contained in:
不做码农
2022-01-10 12:19:44 +08:00
parent b3f97549b2
commit 617b34c884
4 changed files with 40 additions and 39 deletions

View File

@@ -106,6 +106,16 @@ namespace Infrastructure.Extensions
return string.IsNullOrEmpty(str) ? str : str.Substring(0, 1).ToUpper() + str[1..];
}
/// <summary>
/// 首字母转小写
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
public static string FirstLowerCase(this string str)
{
return string.IsNullOrEmpty(str) ? str : str.Substring(0, 1).ToLower() + str[1..];
}
/// <summary>
/// 截取指定字符串中间内容
/// </summary>