- 博客(4)
- 收藏
- 关注
转载 文件操作
1.文件夹是否存在 if(!Directory.Exists(path)) { Directory.CreateDirectory(path);} 2.文件的写入 using( FileStream fs = new FileStream(fullpath,FileMode.CreateNew)) { byte [] data = Convert.F...
2019-09-23 03:11:07 64
转载 linq 这几天用到的知识点,记录一下加强印象。
1. 对字典的排序 Dictionary<string,double> dic = new Dictionary<string,double>(); dic.Add(key,double) ... var sortdic =from d in dic order by d.value descending select d ; 2.Linq T...
2019-09-23 03:11:05 68
转载 sql server数据库简单的sql 统计
一、先建库表 use master if exists (select 1 from sysobjects where id = object_id('testsum') and type = 'U') drop table testsumgo create table testsum ( ...
2019-09-23 03:10:53 230
转载 时间的格式化
1.平时常用,随机生成文件名时用到 DateTime dt = DateTime.Now; string result = dt.ToString("yyyy-MM-dd HH:mm:ss ffffff"); 其中f表示毫秒的格式化。 f 表示精确到毫秒一位数字 ff 表示精确到毫秒两位数字 ... fffffff表示精确到毫秒七位数字 最多精确到毫秒气味数字。 ...
2019-09-23 03:10:50 108
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人