YieldAsync<TDocument>(TDocument) Method
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
IDocumentYieldExtensions

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<IEnumerable<TDocument>> A document enumerable.