C# Class SuperXML.Compiler

Afficher le fichier Open project: beto-rodriguez/SuperXml

Méthodes publiques

Méthode 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

Méthode Description
Compiler ( ) : System
_readXml ( XmlReader reader ) : XmlElement

Method Details

AddKey() public méthode

public AddKey ( string key, dynamic value ) : Compiler
key string
value dynamic
Résultat Compiler

CompileString() public méthode

Compiles a string template
public CompileString ( string input ) : string
input string
Résultat string

CompileXml() public méthode

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") ///
Résultat string

CompileXml() public méthode

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") ///
Résultat string

CompileXml() public méthode

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") ///
Résultat string

CompileXml() public méthode

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") ///
Résultat string

SetScope() public méthode

public SetScope ( dynamic>.Dictionary scope ) : Compiler
scope dynamic>.Dictionary
Résultat Compiler