Class TextGenerator
Inheritance
TextGenerator
Assembly: SoCore.dll
Syntax
public class TextGenerator : Generator
Fields
_endTags
Declaration
protected List<string> _endTags
Field Value
_padTag
Declaration
Field Value
_startTags
Declaration
protected List<string> _startTags
Field Value
Properties
EndTags
End trigger characters for valid tags
Declaration
public virtual string[] EndTags { get; set; }
Property Value
Reader
Declaration
protected StreamReader Reader { get; }
Property Value
StartTags
Start trigger characters for valid tags
Declaration
public virtual string[] StartTags { get; set; }
Property Value
TagEnd
Declaration
[Obsolete("TextGenerator now supports multiple tag characters. Use EndTags instead.", true)]
protected virtual char TagEnd { get; }
Property Value
TagStart
Declaration
[Obsolete("TextGenerator now supports multiple tag characters. Use StartTags instead.", true)]
protected virtual char TagStart { get; }
Property Value
TextEncoding
How the source template is encoded
Declaration
public Encoding TextEncoding { get; set; }
Property Value
Writer
Declaration
protected StreamWriter Writer { get; }
Property Value
Methods
GenerateAsync(Stream, Stream, CancellationToken)
Declaration
public Task GenerateAsync(Stream template, Stream output, CancellationToken cancellationToken = default)
Parameters
Returns
GenerateAsync(Stream, CancellationToken)
Generate from the Template to the Output.
Stream to output to
Declaration
public override Task GenerateAsync(Stream output, CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
Extension Methods