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