![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#常用函数
文章平均质量分 56
lxy_abcde1190
这个作者很懒,什么都没留下…
展开
-
indexof未必比正则快,测试程序如下
indexof未必比正则快,测试程序如下:1. 测试indexof, 循环100000次private void button1_Click(object sender, System.EventArgs e){String str1 = "Beginning with Windows 95 and Windows NT® 4.0, Input Method Editors (IMEs) ar转载 2008-04-18 11:09:00 · 1227 阅读 · 0 评论 -
c#中Split等分割字符串的几种方法
最近经常看到论坛中许多帖子询问如何使用split来分割字符串,我这里对split做一些简单的总结,希望能够对大家有所帮助。下面介绍几种方法: 第一种方法:打开vs.net新建一个控制台项目。然后在Main()方法下输入下面的程序。转载 2008-04-18 10:37:00 · 679 阅读 · 0 评论 -
c#indexof用法
IndexOf() 查找字串中指定字符或字串首次出现的位置,返首索引值,如: str1.IndexOf("字"); //查找“字”在str1中的索引值(位置) str1.IndexOf("字串");//查找“字串”的第一个字符在str1中的索引值(位置) str1.IndexOf("字",start,end);//从str1第start+1个字符起,查找end个字符,查找“字”在字符串STR1中的原创 2008-04-18 11:10:00 · 2381 阅读 · 0 评论 -
c#.net常用函数列表
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Ye转载 2008-04-18 11:10:00 · 411 阅读 · 0 评论 -
String.Format格式说明
C#格式化数值结果表 字符 说明 示例 输出转载 2008-07-03 09:13:00 · 626 阅读 · 0 评论