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

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

posted @ 2012-09-05 16:16  Kong, Star  阅读(3706)  评论(0编辑  收藏  举报