DirectoryPathCollection Class

Summary

A collection of DirectoryPath.
Namespace
Cake.Core.IO
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IEnumerable<DirectoryPath>"] Type-.->Interface1["IEnumerable"] Type["DirectoryPathCollection"] class Type type-node

Syntax

public sealed class DirectoryPathCollection : IEnumerable<DirectoryPath>, IEnumerable

Constructors

Name Summary
DirectoryPathCollection() Initializes a new instance of the DirectoryPathCollection class.
DirectoryPathCollection(IEnumerable<DirectoryPath>) Initializes a new instance of the DirectoryPathCollection class.
DirectoryPathCollection(IEnumerable<DirectoryPath>, PathComparer) Initializes a new instance of the DirectoryPathCollection class.
DirectoryPathCollection(PathComparer) Initializes a new instance of the DirectoryPathCollection class.

Properties

Name Value Summary
Count int
Gets the number of directories in the collection.

Methods

Name Value Summary
Add(DirectoryPath) bool
Adds the specified path to the collection.
Add(IEnumerable<DirectoryPath>) void
Adds the specified paths to the collection.
GetEnumerator() IEnumerator<DirectoryPath>
Returns an enumerator that iterates through the collection.
Remove(DirectoryPath) bool
Removes the specified path from the collection.
Remove(IEnumerable<DirectoryPath>) void
Removes the specified paths from the collection.

Operators

Name Value Summary
operator -(DirectoryPathCollection, DirectoryPath) DirectoryPathCollection
operator -(DirectoryPathCollection, IEnumerable<DirectoryPath>) DirectoryPathCollection
operator +(DirectoryPathCollection, DirectoryPath) DirectoryPathCollection
operator +(DirectoryPathCollection, IEnumerable<DirectoryPath>) DirectoryPathCollection

Extension Methods

Name Value Summary
Dump<DirectoryPathCollection>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<DirectoryPathCollection>(DirectoryPathCollection[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<DirectoryPathCollection>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<DirectoryPathCollection>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<DirectoryPathCollection>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<DirectoryPathCollection>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin