zoukankan      html  css  js  c++  java
  • 可用于测试的数据

    一.本机字体

                System.Drawing.Text.InstalledFontCollection MyFont = new System.Drawing.Text.InstalledFontCollection();
                var v = MyFont.Families;

     

    二.本机文件及文件夹

      DirectoryInfo[] dirs = new DirectoryInfo(@"d:\Documents").GetDirectories();
                var query = from d in dirs
                            where (d.Attributes & FileAttributes.System) == 0
                            select new
                            {
                                DirectoryName = d.FullName,
                                Created = d.CreationTime,
                                Files = from f in d.GetFiles()
                                        where (f.Attributes & FileAttributes.Hidden) == 0
                                        select new { FileName = f.Name, f.Length, }
                            };
     
    三.本机所有进程

        var v = System.Diagnostics.Process.GetProcesses();
    

     

  • 相关阅读:
    少走弯路的10条忠告
    思考
    哈弗经典校训
    项目导出excel引发的一些问题
    hibernate 缓存设置
    dubbo简单用法
    sql 类型问题
    spring this.logger.isDebugEnabled()
    红黑树
    归并排序
  • 原文地址:https://www.cnblogs.com/gossip/p/2284028.html
Copyright © 2011-2022 走看看