/// <summary> /// Initializes a new instance of the <see cref="FilePathCollection"/> class. /// </summary> /// <param name="paths">The paths.</param> /// <param name="comparer">The comparer.</param> public FilePathCollection(IEnumerable <FilePath> paths, PathComparer comparer) { if (comparer == null) { throw new ArgumentNullException("comparer"); } _comparer = comparer; _paths = new HashSet <FilePath>(paths, comparer); }
/// <summary> /// Initializes a new instance of the <see cref="FilePathCollection"/> class. /// </summary> /// <param name="comparer">The comparer.</param> public FilePathCollection(PathComparer comparer) : this(Enumerable.Empty <FilePath>(), comparer) { }
/// <summary> /// Initializes a new instance of the <see cref="DirectoryPathCollection"/> class. /// </summary> /// <param name="comparer">The comparer.</param> public DirectoryPathCollection(PathComparer comparer) : this(Enumerable.Empty <DirectoryPath>(), comparer) { }