📜  sconvert string to title case + C3 - C#代码示例

📅  最后修改于: 2022-03-11 14:48:55.550000             🧑  作者: Mango

代码示例1
public string ConvertStringToTitleCase(string text)
{
    CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture;
    TextInfo textInfo = cultureInfo.TextInfo;
    return textInfo.ToTitleCase(text);
}