Gets the content associated with this document as a
TextReader. This is prefered
over reading the stream as text since it might be optimized for text-based use cases.
The TextReader you get from this call must be disposed as soon as reading is complete.
- Namespace
- Statiq
.Common - Containing Type
- IDocumentExtensions
Syntax
public static TextReader GetContentTextReader(this IDocument document)
Parameters
| Name | Type | Description |
|---|---|---|
| document | IDocument | The document. |
Return Value
| Type | Description |
|---|---|
| TextReader | A TextReader of the content associated with this document. |