C# 常用语句

var list = dt.AsEnumerable().Select(t => t.Field<string>("Bed")).ToList();
Select("过滤条件","排序列") dt.Select(" A > 1","A desc");

//打开资源管理器,并选中导出的文件
Process proc = new Process();
proc.StartInfo.FileName = "explorer";
proc.StartInfo.Arguments = @"/select," + localFilePath;
proc.Start();

new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);

posted @ 2018-12-14 11:00  一只桔子2233  阅读(289)  评论(0编辑  收藏  举报