C# Class SuperXML.Compiler

显示文件 Open project: beto-rodriguez/SuperXml

Public Methods

Method Description
AddKey ( string key, dynamic value ) : Compiler
CompileString ( string input ) : string

Compiles a string template

CompileXml ( Stream stream, XmlElement>.Func root = null ) : string

Compiles a Xml template using the specified stream with default settings.

CompileXml ( TextReader textReader, XmlElement>.Func root = null ) : string

Compiles a Xml template by using the specified text reader.

CompileXml ( XmlReader xmlReader, XmlElement>.Func root = null ) : string

Compiles a Xml template with a specified XmlReader

CompileXml ( string uri, XmlElement>.Func root = null ) : string

Compiles a Xml template with specified URI.

SetScope ( dynamic>.Dictionary scope ) : Compiler

Private Methods

Method Description
Compiler ( ) : System
_readXml ( XmlReader reader ) : XmlElement

Method Details

AddKey() public method

public AddKey ( string key, dynamic value ) : Compiler
key string
value dynamic
return Compiler

CompileString() public method

Compiles a string template
public CompileString ( string input ) : string
input string
return string

CompileXml() public method

Compiles a Xml template using the specified stream with default settings.
public CompileXml ( Stream stream, XmlElement>.Func root = null ) : string
stream Stream
root XmlElement>.Func /// Set the root to compile, to improve performance. /// example: x => x.Children.First(y => x.Name == "MyElement") ///
return string

CompileXml() public method

Compiles a Xml template by using the specified text reader.
public CompileXml ( TextReader textReader, XmlElement>.Func root = null ) : string
textReader TextReader
root XmlElement>.Func /// Set the root to compile, to improve performance. /// example: x => x.Children.First(y => x.Name == "MyElement") ///
return string

CompileXml() public method

Compiles a Xml template with a specified XmlReader
public CompileXml ( XmlReader xmlReader, XmlElement>.Func root = null ) : string
xmlReader XmlReader
root XmlElement>.Func /// Set the root to compile, to improve performance. /// example: x => x.Children.First(y => x.Name == "MyElement") ///
return string

CompileXml() public method

Compiles a Xml template with specified URI.
public CompileXml ( string uri, XmlElement>.Func root = null ) : string
uri string
root XmlElement>.Func /// Set the root to compile, to improve performance. /// example: x => x.Children.First(y => x.Name == "MyElement") ///
return string

SetScope() public method

public SetScope ( dynamic>.Dictionary scope ) : Compiler
scope dynamic>.Dictionary
return Compiler