编程语言
首页 > 编程语言> > C# 字符串首字母大写其余小写

C# 字符串首字母大写其余小写

作者:互联网

原文链接:http://www.cnblogs.com/konglingxing/archive/2012/09/05/StringOperation.html

CultureInfo cultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture;
TextInfo text = cultureInfo.TextInfo;
string toLower = text.ToLower("sDEFW");
string result = text.ToTitleCase(toLower);

转载于:https://www.cnblogs.com/konglingxing/archive/2012/09/05/StringOperation.html

标签:www,cultureInfo,05,C#,text,首字母,小写,archive,string
来源: https://blog.csdn.net/weixin_30675247/article/details/98770155