Emitter Class
Emits YAML streams.
public class Emitter : IEmitter- Implements
Constructors
| Name | Description |
|---|---|
| Emitter(TextWriter, int, int, bool, bool, bool) | Initializes a new instance of the IEmitter class. |
Emitter(TextWriter, int, int, bool, bool, bool)
Emitter.csInitializes a new instance of the IEmitter class.
public Emitter(TextWriter output, int bestIndent = 2, int bestWidth = 2147483647, bool isCanonical = false, bool forceIndentLess = false, bool emitKeyQuoted = false)Parameters
outputTextWriter- The
TextWriterwhere the emitter will write. bestIndentint- The preferred indentation.
bestWidthint- The preferred text width.
isCanonicalbool- If true, write the output in canonical form.
forceIndentLessbool- if set to
true[always indent]. emitKeyQuotedbool- if set to
truealways emit keys double quoted.
Exceptions
ArgumentOutOfRangeException- bestIndent or bestWidth;The bestWidth parameter must be greater than bestIndent * 2.
Properties
| Name | Description |
|---|---|
| ForceIndentLess | Gets or sets a value indicating whether [always indent]. |
ForceIndentLess
Emitter.csMethods
| Name | Description |
|---|---|
| Emit(ParsingEvent) | Emit an evt. |