C# 클래스 SuperXML.Compiler

파일 보기 프로젝트 열기: beto-rodriguez/SuperXml

공개 메소드들

메소드 설명
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