INamespacesCollection Interface
A collection of namespace strings used to inform modules of which namespaces should be available during dynamic code generation and/or execution.
Namespace
Statiq.Common
Interfaces
  • IReadOnlyCollection<string>
  • IEnumerable<string>
  • IEnumerable
  • ICacheCode
Implementing Types
graph BT Type-.->Interface0["IReadOnlyCollection<string>"] Type-.->Interface1["IEnumerable<string>"] Type-.->Interface2["IEnumerable"] Type-.->Interface3["ICacheCode"] click Interface3 "/api/Statiq.Common/ICacheCode" Type["INamespacesCollection"] class Type type-node Implementing0["NamespaceCollection"]-.->Type click Implementing0 "/api/Statiq.Core/NamespaceCollection" Implementing1["TestNamespacesCollection"]-.->Type click Implementing1 "/api/Statiq.Testing/TestNamespacesCollection"

Syntax

public interface INamespacesCollection : IReadOnlyCollection<string>, IEnumerable<string>, 
    IEnumerable, ICacheCode

Methods

Name Return Value Summary
Add(string) bool
Adds a namespace to the collection.
AddRange(IEnumerable<string>) void
Adds a range of namespaces to the collection.

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<INamespacesCollection>(string) T
ToDocument<INamespacesCollection>(IContentProvider) IDocument
ToDocument<INamespacesCollection>(IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<INamespacesCollection>(NormalizedPath, IContentProvider) IDocument
ToDocument<INamespacesCollection>(NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<INamespacesCollection>(NormalizedPath, NormalizedPath, IContentProvider) IDocument
ToDocument<INamespacesCollection>(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