Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotNetEntry"/> class.
 /// </summary>
 /// <param name="fileSystem">The file system this entry belongs to</param>
 /// <param name="parent">The parent collection</param>
 /// <param name="info">The file system information</param>
 /// <param name="path">The root-relative path of this entry</param>
 /// <param name="name">The entry name (<see langword="null"/> when <see cref="FileSystemInfo.Name"/> of <see cref="Info"/> should be used)</param>
 protected DotNetEntry(DotNetFileSystem fileSystem, ICollection parent, FileSystemInfo info, Uri path, string name)
 {
     Parent           = parent;
     Info             = info;
     DotNetFileSystem = fileSystem;
     Path             = path;
     Name             = name ?? info.Name;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotNetDirectory"/> class.
 /// </summary>
 /// <param name="fileSystem">The file system this collection belongs to</param>
 /// <param name="parent">The parent collection</param>
 /// <param name="info">The directory information</param>
 /// <param name="path">The root-relative path of this collection</param>
 /// <param name="name">The entry name (<see langword="null"/> when <see cref="FileSystemInfo.Name"/> of <see cref="DotNetEntry.Info"/> should be used)</param>
 /// <param name="isRoot">Is this the file systems root directory?</param>
 public DotNetDirectory(
     DotNetFileSystem fileSystem,
     ICollection parent,
     DirectoryInfo info,
     Uri path,
     string name,
     bool isRoot = false)
     : base(fileSystem, parent, info, path, name)
 {
     _isRoot = isRoot;
     _fileSystemPropertyStore = fileSystem.PropertyStore as IFileSystemPropertyStore;
     DirectoryInfo            = info;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotNetFile"/> class.
 /// </summary>
 /// <param name="fileSystem">The file system this document belongs to</param>
 /// <param name="parent">The parent collection</param>
 /// <param name="info">The file information</param>
 /// <param name="path">The root-relative path of this document</param>
 public DotNetFile(DotNetFileSystem fileSystem, ICollection parent, FileInfo info, Uri path)
     : base(fileSystem, parent, info, path, null)
 {
     FileInfo = info;
 }