VS2005登陸控件簡介
摘要:/Files/Snowfun/VS2005登录控件.zip
阅读全文
C#中判断空字符串的3种方法性能分析
摘要:C#中判断空字符串的3种方法性能分析3种方法分别是:string a="";1.if(a=="")2.if(a==String.Empty)3.if(a.Length==0)3种方法都是等效的,那么究竟那一种方法性能最高呢?那么为什么if(a.Length==0)最快呢?因为整数判断等于最快,没有经过实例化等复杂的过程。所以:建议大家判断字符串是否为空用 if(a.Length==0)。
阅读全文
C#常用函数及方法集
摘要:1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 in...
阅读全文