Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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)
 {
 }
Ejemplo n.º 3
0
 /// <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)
 {
 }