Click or drag to resize

XmlGenerator Constructor

This constructor should be used if output depends on the name of the document.

Namespace:  Syntactik.Compiler.Generator
Assembly:  Syntactik (in Syntactik.dll) Version: 0.3.0-beta1
Syntax
C#
public XmlGenerator(
	Func<string, Encoding, XmlWriter> writerDelegate,
	Func<string, XmlReaderSettings, XmlReader> readerDelegate,
	CompilerContext context,
	bool generateComments = false
)

Parameters

writerDelegate
Type: SystemFuncString, Encoding, XmlWriter
Delegate will be called for each Document. The name of the document will be sent in the string argument.
readerDelegate
Type: SystemFuncString, XmlReaderSettings, XmlReader
Delegate should return XmlReader for each generated document.
context
Type: Syntactik.CompilerCompilerContext
Compilation context
generateComments (Optional)
Type: SystemBoolean
if true then comments will be generated.
See Also