NamespaceCollection Class
Namespace
Statiq.Core
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["INamespacesCollection"] click Interface0 "/api/Statiq.Common/INamespacesCollection" Type-.->Interface1["IReadOnlyCollection<string>"] Type-.->Interface2["IEnumerable<string>"] Type-.->Interface3["IEnumerable"] Type-.->Interface4["ICacheCode"] click Interface4 "/api/Statiq.Common/ICacheCode" Type["NamespaceCollection"] class Type type-node

Syntax

public class NamespaceCollection : INamespacesCollection, IReadOnlyCollection<string>, 
    IEnumerable<string>, IEnumerable, ICacheCode

Constructors

Name Summary
NamespaceCollection()

Properties

Name Property Type Summary
Count int

Methods

Name Return Value Summary
Add(string) bool
AddRange(IEnumerable<string>) void
GetCacheCodeAsync() Task<int>
GetEnumerator() IEnumerator<string>

Extension Methods

Name Value Summary
Concat<string>(string) IEnumerable<T>
GetNext<string>(string, IEqualityComparer<string>) T
GetNext<string>(string) T
GetPrevious<string>(string, IEqualityComparer<string>) T
GetPrevious<string>(string) T
GroupByMany<string, TKey, TElement>(Func<string, IEnumerable<TKey>>, Func<string, TElement>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
GroupByMany<string, TKey, TElement>(Func<string, IEnumerable<TKey>>, Func<string, TElement>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function.
GroupByMany<string, TKey>(Func<string, IEnumerable<TKey>>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TSource>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and compares the keys by using a specified comparer.
GroupByMany<string, TKey>(Func<string, IEnumerable<TKey>>) IEnumerable<IGrouping<TKey, TSource>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys.
GroupByManyToMany<string, TKey, TElement>(Func<string, IEnumerable<TKey>>, Func<string, IEnumerable<TElement>>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function that returns a sequence of elements.
GroupByManyToMany<string, TKey, TElement>(Func<string, IEnumerable<TKey>>, Func<string, IEnumerable<TElement>>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function that returns a sequence of elements.
ParallelForEachAsync<string>(Func<string, Task>, CancellationToken) Task
ParallelSelectAsync<string, TResult>(Func<string, Task<TResult>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector in parallel.
ParallelSelectManyAsync<string, TResult>(Func<string, Task<IEnumerable<TResult>>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector that returns multiple results in parallel.
ParallelWhereAsync<string>(Func<string, Task<bool>>, CancellationToken) Task<IEnumerable<TSource>>
StartsWith<string>(IEnumerable<string>, IEqualityComparer<string>) bool
Determines whether the items starts with the specified values.
StartsWith<string>(IEnumerable<string>) bool
Determines whether the items starts with the specified values.
ThrowIfNull<NamespaceCollection>(string) T
ToDocument<NamespaceCollection>(IContentProvider) IDocument
ToDocument<NamespaceCollection>(IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<NamespaceCollection>(NormalizedPath, IContentProvider) IDocument
ToDocument<NamespaceCollection>(NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<NamespaceCollection>(NormalizedPath, NormalizedPath, IContentProvider) IDocument
ToDocument<NamespaceCollection>(NormalizedPath, NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocuments<string>(Func<string, IContentProvider>) IEnumerable<IDocument>
ToDocuments<string>(Func<string, IEnumerable<KeyValuePair<string, object>>>, Func<string, IContentProvider>) IEnumerable<IDocument>
ToDocuments<string>(Func<string, NormalizedPath>, Func<string, IContentProvider>) IEnumerable<IDocument>
ToDocuments<string>(Func<string, NormalizedPath>, Func<string, IEnumerable<KeyValuePair<string, object>>>, Func<string, IContentProvider>) IEnumerable<IDocument>
ToDocuments<string>(Func<string, NormalizedPath>, Func<string, NormalizedPath>, Func<string, IContentProvider>) IEnumerable<IDocument>
ToDocuments<string>(Func<string, NormalizedPath>, Func<string, NormalizedPath>, Func<string, IEnumerable<KeyValuePair<string, object>>>, Func<string, IContentProvider>) IEnumerable<IDocument>
ToLookupMany<string, TKey, TElement>(Func<string, IEnumerable<TKey>>, Func<string, TElement>, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
ToLookupMany<string, TKey, TElement>(Func<string, IEnumerable<TKey>>, Func<string, TElement>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function.
ToLookupMany<string, TKey>(Func<string, IEnumerable<TKey>>, IEqualityComparer<TKey>) ILookup<TKey, TSource>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and compares the keys by using a specified comparer.
ToLookupMany<string, TKey>(Func<string, IEnumerable<TKey>>) ILookup<TKey, TSource>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys.
ToLookupManyToMany<string, TKey, TElement>(Func<string, IEnumerable<TKey>>, Func<string, IEnumerable<TElement>>, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function that returns a sequence of elements.
ToLookupManyToMany<string, TKey, TElement>(Func<string, IEnumerable<TKey>>, Func<string, IEnumerable<TElement>>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function that returns a sequence of elements.
ToStringTable<string>(string[], Func<string, object>[]) string