C# Класс SuperXML.Compiler

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Compiler ( ) : System
_readXml ( XmlReader reader ) : XmlElement

Описание методов

AddKey() публичный Метод

public AddKey ( string key, dynamic value ) : Compiler
key string
value dynamic
Результат Compiler

CompileString() публичный Метод

Compiles a string template
public CompileString ( string input ) : string
input string
Результат string

CompileXml() публичный Метод

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") ///
Результат string

CompileXml() публичный Метод

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") ///
Результат string

CompileXml() публичный Метод

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") ///
Результат string

CompileXml() публичный Метод

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") ///
Результат string

SetScope() публичный Метод

public SetScope ( dynamic>.Dictionary scope ) : Compiler
scope dynamic>.Dictionary
Результат Compiler