IfCondition Class
Namespace
Statiq.Core
Interfaces
Base Types
graph BT Type-->Base0["ModuleList"] click Base0 "/api/Statiq.Common/ModuleList" Base0-->Base1["object"] Type-.->Interface0["IList<IModule>"] Type-.->Interface1["ICollection<IModule>"] Type-.->Interface2["IEnumerable<IModule>"] Type-.->Interface3["IEnumerable"] Type["IfCondition"] class Type type-node

Syntax

public class IfCondition : ModuleList, IList<IModule>, ICollection<IModule>, IEnumerable<IModule>, 
    IEnumerable

Properties

Name Property Type Summary
Count int
Inherited from ModuleList
IsReadOnly bool
Inherited from ModuleList
Predicate Config<bool>
this[int] IModule
Inherited from ModuleList

Methods

Name Return Value Summary
Add(IModule[]) void
Adds modules to the list. Any null items in the sequence of modules will be discarded.
Inherited from ModuleList
AddRange(IEnumerable<IModule>) void
Adds modules to the list. Any null items in the sequence of modules will be discarded.
Inherited from ModuleList
Append(IModule[]) ModuleList
Appends modules.
Inherited from ModuleList
Clear() void
Inherited from ModuleList
Contains(IModule) bool
Inherited from ModuleList
CopyTo(IModule[], int) void
Inherited from ModuleList
GetEnumerator() IEnumerator<IModule>
Inherited from ModuleList
GetFirst<TModule>() TModule
Gets the first module of the specified type.
Inherited from ModuleList
GetFirst<TModule>(Predicate<TModule>) TModule
Gets the first module of the specified type.
Inherited from ModuleList
GetLast<TModule>() TModule
Gets the last module of the specified type.
Inherited from ModuleList
GetLast<TModule>(Predicate<TModule>) TModule
Gets the last module of the specified type.
Inherited from ModuleList
IndexOf(IModule) int
Inherited from ModuleList
IndexOfFirst<TModule>() int
Gets the index of the first module of the specified type.
Inherited from ModuleList
IndexOfFirst<TModule>(Predicate<TModule>) int
Gets the index of the first module of the specified type.
Inherited from ModuleList
IndexOfLast<TModule>() int
Gets the index of the last module of the specified type.
Inherited from ModuleList
IndexOfLast<TModule>(Predicate<TModule>) int
Gets the index of the last module of the specified type.
Inherited from ModuleList
Insert(int, IModule) void
Inherited from ModuleList
Insert(int, IModule[]) void
Inserts modules into the list. Any null items in the sequence of modules will be discarded.
Inherited from ModuleList
InsertAfterFirst<TModule>(IModule[]) ModuleList
Inserts modules after the first module in the list of the specified type.
Inherited from ModuleList
InsertAfterFirst<TModule>(Predicate<TModule>, IModule[]) ModuleList
Inserts modules after the first module in the list of the specified type that satisfies a predicate.
Inherited from ModuleList
InsertAfterLast<TModule>(IModule[]) ModuleList
Inserts modules after the last module in the list of the specified type.
Inherited from ModuleList
InsertAfterLast<TModule>(Predicate<TModule>, IModule[]) ModuleList
Inserts modules after the last module in the list of the specified type that satisfies a predicate.
Inherited from ModuleList
InsertBeforeFirst<TModule>(IModule[]) ModuleList
Inserts modules before the first module in the list of the specified type.
Inherited from ModuleList
InsertBeforeFirst<TModule>(Predicate<TModule>, IModule[]) ModuleList
Inserts modules before the first module in the list of the specified type that satisfies a predicate.
Inherited from ModuleList
InsertBeforeLast<TModule>(IModule[]) ModuleList
Inserts modules before the last module in the list of the specified type.
Inherited from ModuleList
InsertBeforeLast<TModule>(Predicate<TModule>, IModule[]) ModuleList
Inserts modules before the last module in the list of the specified type that satisfies a predicate.
Inherited from ModuleList
InsertRange(int, IEnumerable<IModule>) void
Inserts modules into the list. Any null items in the sequence of modules will be discarded.
Inherited from ModuleList
Modify(int, Action<IModule>) ModuleList
Modifies an inner module list with the specified index.
Inherited from ModuleList
Prepend(IModule[]) ModuleList
Prepends modules.
Inherited from ModuleList
Remove(IModule) bool
Inherited from ModuleList
RemoveAt(int) void
Inherited from ModuleList
Replace(int, IModule) ModuleList
Replaces a module at the specified index.
Inherited from ModuleList
ReplaceFirst<TModule>(IModule) ModuleList
Replaces the first module in the list of the specified type.
Inherited from ModuleList
ReplaceFirst<TModule>(Predicate<TModule>, IModule) ModuleList
Replaces the first module in the list of the specified type that satisfies a predicate.
Inherited from ModuleList
ReplaceLast<TModule>(IModule) ModuleList
Replaces the last module in the list of the specified type.
Inherited from ModuleList
ReplaceLast<TModule>(Predicate<TModule>, IModule) ModuleList
Replaces the last module in the list of the specified type that satisfies a predicate.
Inherited from ModuleList

Operators

Name Value Summary
implicit operator ModuleList(IModule[]) ModuleList
Inherited from ModuleList

Extension Methods

Name Value Summary
AddRange<IModule>(IEnumerable<IModule>) void
Adds a range of values to a collection.
AddRange<IModule>(IModule[]) void
Adds a range of values to a collection.
Concat<IModule>(IModule) IEnumerable<T>
GetNext<IModule>(IModule, IEqualityComparer<IModule>) T
GetNext<IModule>(IModule) T
GetPrevious<IModule>(IModule, IEqualityComparer<IModule>) T
GetPrevious<IModule>(IModule) T
GroupByMany<IModule, TKey, TElement>(Func<IModule, IEnumerable<TKey>>, Func<IModule, 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<IModule, TKey, TElement>(Func<IModule, IEnumerable<TKey>>, Func<IModule, 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<IModule, TKey>(Func<IModule, 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<IModule, TKey>(Func<IModule, 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<IModule, TKey, TElement>(Func<IModule, IEnumerable<TKey>>, Func<IModule, 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<IModule, TKey, TElement>(Func<IModule, IEnumerable<TKey>>, Func<IModule, 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<IModule>(Func<IModule, Task>, CancellationToken) Task
ParallelSelectAsync<IModule, TResult>(Func<IModule, Task<TResult>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector in parallel.
ParallelSelectManyAsync<IModule, TResult>(Func<IModule, Task<IEnumerable<TResult>>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector that returns multiple results in parallel.
ParallelWhereAsync<IModule>(Func<IModule, Task<bool>>, CancellationToken) Task<IEnumerable<TSource>>
RemoveAll<IModule>(Func<IModule, bool>) int
Removes all items that match a predicate from a collection.
StartsWith<IModule>(IEnumerable<IModule>, IEqualityComparer<IModule>) bool
Determines whether the items starts with the specified values.
StartsWith<IModule>(IEnumerable<IModule>) bool
Determines whether the items starts with the specified values.
ThrowIfNull<IfCondition>(string) T
ToDocument<IfCondition>(IContentProvider) IDocument
ToDocument<IfCondition>(IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<IfCondition>(NormalizedPath, IContentProvider) IDocument
ToDocument<IfCondition>(NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<IfCondition>(NormalizedPath, NormalizedPath, IContentProvider) IDocument
ToDocument<IfCondition>(NormalizedPath, NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocuments<IModule>(Func<IModule, IContentProvider>) IEnumerable<IDocument>
ToDocuments<IModule>(Func<IModule, IEnumerable<KeyValuePair<string, object>>>, Func<IModule, IContentProvider>) IEnumerable<IDocument>
ToDocuments<IModule>(Func<IModule, NormalizedPath>, Func<IModule, IContentProvider>) IEnumerable<IDocument>
ToDocuments<IModule>(Func<IModule, NormalizedPath>, Func<IModule, IEnumerable<KeyValuePair<string, object>>>, Func<IModule, IContentProvider>) IEnumerable<IDocument>
ToDocuments<IModule>(Func<IModule, NormalizedPath>, Func<IModule, NormalizedPath>, Func<IModule, IContentProvider>) IEnumerable<IDocument>
ToDocuments<IModule>(Func<IModule, NormalizedPath>, Func<IModule, NormalizedPath>, Func<IModule, IEnumerable<KeyValuePair<string, object>>>, Func<IModule, IContentProvider>) IEnumerable<IDocument>
ToLookupMany<IModule, TKey, TElement>(Func<IModule, IEnumerable<TKey>>, Func<IModule, 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<IModule, TKey, TElement>(Func<IModule, IEnumerable<TKey>>, Func<IModule, 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<IModule, TKey>(Func<IModule, 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<IModule, TKey>(Func<IModule, 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<IModule, TKey, TElement>(Func<IModule, IEnumerable<TKey>>, Func<IModule, 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<IModule, TKey, TElement>(Func<IModule, IEnumerable<TKey>>, Func<IModule, 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<IModule>(string[], Func<IModule, object>[]) string