首页 > Windows开发 > 详细

C# String函数

时间:2017-02-13 21:47:56      阅读:246      评论:0      收藏:0      [点我收藏+]

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函数

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!