[导入][Code]C# Capital Initial首字母大写
碰巧用到,记录一下:
文章来源:http://jinweijie.blogspot.com/2006/08/codec-capital-initial.html
using System.Globalization;
using System.Threading;
CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture;
TextInfo textInfo = cultureInfo.TextInfo;
Console.WriteLine(textInfo.ToTitleCase(title));
Console.WriteLine(textInfo.ToLower(title));
Console.WriteLine(textInfo.ToUpper(title));
文章来源:http://jinweijie.blogspot.com/2006/08/codec-capital-initial.html