c# 字符串的首字母大写转换 方法

方法1:

s.Substring(0,1).ToUpper()+s.Substring(1); 

 

方法2: 

s = System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(s)
posted on 2016-02-18 15:46  BlueWhale84  阅读(10351)  评论(0编辑  收藏  举报