码迷,mamicode.com
首页 > 其他好文 > 详细

C#String.Format格式化的用法

时间:2014-09-04 14:47:09      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   color   for   div   sp   log   c   

C++里面的用法:

1 string buf = string.Format("识别出%d个节点",nodeslist.Count);
2 WriteEventLog("#0000FF", true, 0x23, buf);

C#里面的用法:

1 string buf = string.Format("识别出{0}个节点",nodeslist.Count);
2 WriteEventLog("#0000FF", true, 0x23, buf);

 

C#String.Format格式化的用法

标签:des   style   blog   color   for   div   sp   log   c   

原文地址:http://www.cnblogs.com/shenbimanong/p/3955990.html

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