![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
LoveJava520
这个作者很懒,什么都没留下…
展开
-
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 取当前日 int 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 in转载 2010-10-20 22:47:00 · 523 阅读 · 0 评论 -
c# 获取字符串中的数字
<br />/// <summary><br /> /// 获取字符串中的数字<br /> /// </summary><br /> /// <param name="str">字符串</param><br /> /// <returns>数字</returns><br /> public static decimal GetNumber(string str)<br /> {<br /> decimal result = 0;<br /> if (str != null && str转载 2010-10-20 22:58:00 · 742 阅读 · 0 评论