摘要:
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime();1.1 取当前年月日时分秒currentTime=System.DateTime.Now;1.2 取当前年int 年=currentTime.Year;1.3 取当前月i 阅读全文
posted @ 2019-07-11 13:05
向前追起
阅读(411)
评论(0)
推荐(0)
摘要:
var 局部变量 = 1; //var只能声明局部变量,由编译器根据表达式推断类型(又称为"隐式类型") //下面的两种写法都是等价的,后一种直接引用System的类型,需要导入System命名空间 //任意对象类型,可变的引用类型 object o = 1; Object O = 1; //布尔型 阅读全文
posted @ 2019-07-11 13:04
向前追起
阅读(736)
评论(0)
推荐(0)
摘要:
// 获取程序的基目录。 System.AppDomain.CurrentDomain.BaseDirectory // 获取模块的完整路径。 System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName // 获取和设置当前目 阅读全文
posted @ 2019-07-11 11:45
向前追起
阅读(73)
评论(0)
推荐(0)
摘要:
// 获取程序的基目录。 System.AppDomain.CurrentDomain.BaseDirectory // 获取模块的完整路径。 System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName // 获取和设置当前目 阅读全文
posted @ 2019-07-11 11:44
向前追起
阅读(10310)
评论(0)
推荐(0)

浙公网安备 33010602011771号