public EntityDirectory(IEntityDirectoryFileSystem fileSystem, EntityReference entityReference, DirectoryType directoryType) : base(fileSystem) { if (entityReference == null) { throw new ArgumentNullException("entityReference"); } if (directoryType == null) { throw new ArgumentNullException("directoryType"); } _entityReference = entityReference; DirectoryType = directoryType; }
public EntityFileSystemContext(IEntityDirectoryFileSystem fileSystem, Entity root, DirectoryType rootDirectoryType, IDirectory current) : base(fileSystem) { if (root == null) { throw new ArgumentNullException("root"); } if (rootDirectoryType == null) { throw new ArgumentNullException("rootDirectoryType"); } if (current == null) { throw new ArgumentNullException("current"); } Root = root; RootDirectoryType = rootDirectoryType; _current = current; _tree = new Lazy <DirectoryTreeNode>(GetTree, LazyThreadSafetyMode.None); }