易丰科技
标题:
code snippet : 转换字串的 Title Case
[打印本页]
作者:
Calvin
时间:
2011-10-1 09:53
标题:
code snippet : 转换字串的 Title Case
public static string ToTitleCase(this string title)
{
CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture;
TextInfo textInfo = cultureInfo.TextInfo;
return textInfo.ToTitleCase(title);
}
欢迎光临 易丰科技 (http://forum.yftek.com/)
Powered by Discuz! X3