码迷,mamicode.com
首页 > Windows程序 > 详细

C# String函数

时间:2017-02-13 21:48:23      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:value   string   .so   array   否则   line   eve   reverse   ever   

public static bool IsNullOrEmpty(string value)


如果 true 参数为 value 或空字符串 (""),则为 null;否则为 false。


返回组合后的字符串

 decimal temp = 20.4m;

string s = String.Format("The temperature is {0}°C.", temp);
Console.WriteLine(s);
// Displays ‘The temperature is 20.4°C.‘

 


 

Array.Sort(sArr);     //升序

Array.Reverse(sArr);    //倒置数组内容,就是降序了.

 

C# String函数

标签:value   string   .so   array   否则   line   eve   reverse   ever   

原文地址:http://www.cnblogs.com/bingxing/p/6395067.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!