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