public DirectoryEnumerator(string root, int depth, ReadValueDelegaty <T> readValue) { this.root = root; this.depth = depth; dirMap = new List <string>(); files = new List <string>(); ReadValue = readValue; index = 0; fileIndex = 0; GenerateDirMap(root, 0); }
public DirectoryCollection(string root, int depth, ReadValueDelegaty <T> readValue) { directory = new DirectoryEnumerator <T>(root, depth, readValue); }