資源簡介
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.IO;
using?System.Linq;
using?System.Runtime.Serialization.Formatters.Binary;
using?System.Security.AccessControl;
using?System.Text;
using?System.Windows.Forms;
namespace?DMPlay
{
???public?class?API
???{
????????#region?文件夾搜索
???????///?
????????///?遞歸獲取文件夾目錄下文件
????????///?
????????///?需要遞歸遍歷的文件夾
????????///?遍歷規則『委托』
????????public?static?void?LoopFolder(string?pathName?Action?fileRule)
????????{
????????????if?(string.IsNullOrEmpty(pathName))
????????????????throw?new?ArgumentNullException(pathName);
????????????Queue?_pathQueue?=?new?Queue();
????????????_pathQueue.Enqueue(pathName);
????
- 上一篇:C# 生產管理系統源碼(含數據庫腳本)
- 下一篇:DDD(面向領域模型設計)入門級
評論
共有 條評論