PathCollection<TPath> Class

Summary

An ordered collection of unique Wyam.Common.IO.NormalizedPath.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.IO
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IReadOnlyList<TPath>"] Type["PathCollection<TPath>"] class Type type-node

Syntax

public class PathCollection<TPath> : IReadOnlyList<TPath> where TPath : NormalizedPath

Type Parameters

Name Description
TPath The type of the path (file or directory).

Constructors

Name Summary
PathCollection() Initializes a new path collection.
PathCollection(IEnumerable<TPath>) Initializes a new path collection.

Properties

Name Value Summary
Count int
Gets the number of directories in the collection.
this[int] TPath
Gets or sets the Wyam.Common.IO.DirectoryPath at the specified index.

Methods

Name Value Summary
Add(TPath) bool
Adds the specified path to the collection.
AddRange(IEnumerable<TPath>) void
Adds the specified paths to the collection.
Clear() void
Clears all paths from the collection.
Contains(TPath) bool
Determines whether the collection contains the specified path.
GetEnumerator() IEnumerator<TPath>
Returns an enumerator that iterates through the collection.
IndexOf(TPath) int
Returns the index of the specified path.
Insert(int, TPath) bool
Inserts the path at the specified index.
Remove(TPath) bool
Removes the specified path.
RemoveAt(int) void
Removes the path at the specified index.
RemoveRange(IEnumerable<TPath>) void
Removes the specified paths from the collection.
GitHub