Returns a document enumerable given a single document. This is just a convenience
method for converting a single document into an
IEnumerable<T>
.
- Namespace
- Statiq
.Common - Containing Type
- I
Document Yield Extensions
Syntax
public static Task<IEnumerable<TDocument>> YieldAsync<TDocument>(this TDocument document)
where TDocument : IDocument
Type Parameters
Name | Description |
---|---|
TDocument |
Parameters
Name | Type | Description |
---|---|---|
document | TDocument | The document to return. |
Return Value
Type | Description |
---|---|
Task |
A document enumerable. |