Chinaunix首页 | 论坛 | 博客
  • 博客访问: 12394517
  • 博文数量: 1293
  • 博客积分: 13501
  • 博客等级: 上将
  • 技术积分: 17974
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-08 18:11
文章分类

全部博文(1293)

文章存档

2019年(1)

2018年(1)

2016年(118)

2015年(257)

2014年(128)

2013年(222)

2012年(229)

2011年(337)

发布时间:2015-03-09 14:28:08

private Color getColor(int index)        {            Color clr;            /* 红色 */&nb.........【阅读全文】

阅读(1195) | 评论(0) | 转发(0)

发布时间:2015-01-28 11:49:18

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace TestArrayList {     class Program     {         public struct SData    .........【阅读全文】

阅读(1899) | 评论(0) | 转发(0)

发布时间:2014-08-04 11:10:46

由于总用 String.IsNullOrEmpty( s ) ,就上网收了一下相关的资料,其实这种用法和s == null || s.Length == 0这种判断方法并无太大区别。只是在速度上可能后者比前者快那么一点点(百万毫秒级别上的),但是瑕不掩瑜,前者便于阅读代码。在对效率要求不高的时候,还是使用前者吧。.Net4.0又出现了String.IsNullOrWhiteSpace.........【阅读全文】

阅读(1720) | 评论(0) | 转发(0)

发布时间:2013-11-21 16:51:51

实用案例,如我想把"Kobe Brynt Lebron James Chris Bosh"这个字符串中的所有空格替换成下划线”_”,该如何处理? C# 的String为我们提供了一个极好的方法Replace,如下所示。很明显,这是一个重载函数,即可要实现字符替换;还可以实现字符串替换。 public string Replace(char oldChar, char newChar); public string .........【阅读全文】

阅读(2691) | 评论(0) | 转发(0)

发布时间:2013-11-21 15:30:39

有时候需要使用一个数据字典的表来罗列大批的数据,这时使用List是比较好的方法。   class Program {     public static List STAR_LIST = new List() { "Kobe","James","Wade","Durant"};     static void Main(string[] args)    .........【阅读全文】

阅读(4348) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

tomcoding2018-07-26 14:29

学无止境啊,到我的博客看看吧

回复  |  举报

lixinhai062016-12-01 16:14

大牛

回复  |  举报

dyli20002015-04-02 23:14

meng1623338942:有好多我要学习的东西啊、】

互相学习

回复  |  举报

dyli20002015-04-02 23:14

华冠一锅3:博客不错,交个朋友

好说好说

回复  |  举报

华冠一锅32015-04-02 13:12

博客不错,交个朋友

回复  |  举报
留言热议
请登录后留言。

登录 注册