摘要:
c# 获取文件最后修改日期代码FileInfo f = new FileInfo(@"c:\1.txt");Console.WriteLine(f.LastWriteTime.ToString());c# 获取文件最后访问时间代码FileInfo f = new FileInfo(@"c:\1.tx 阅读全文
摘要:
说明:几个简单的基本的sql语句 选择:select * from table1 where 范围 插入:insert into table1(field1,field2) values(value1,value2) 删除:delete from table1 where 范围 更新:update 阅读全文
摘要:
1.类型判断 操作符:is 通常是在类型转换前使用,避免或减少转换失败的情况发生 格式: e is T 左操作数e要求的是一个变量或表达式,右侧操作数T要求本身就是一个类型 String o="abc"; console.writeline(o is String);//输出True console 阅读全文
摘要:
1.C#中是不允许用new操作符创建String对象的,编译器会报错。 2.实例字段:使用new对class创建对象直接赋初始值,不适用于struct slass Rect { public int x=1; public int y=1; } Rect a=new Rect(); 4:public 阅读全文