C# Class CSharpUtils.Templates.TemplateFactory

Mostrar archivo Open project: soywiz/csharputils Class Usage Examples

Public Properties

Property Type Description
CachedTemplatesByFile Type>.Dictionary
Encoding System.Text.Encoding
TemplateProvider ITemplateProvider

Protected Properties

Property Type Description
OutputGeneratedCode bool

Public Methods

Method Description
GetTemplateCodeByFile ( String Name ) : TemplateCode
GetTemplateCodeByString ( String TemplateString ) : TemplateCode
TemplateFactory ( ITemplateProvider TemplateProvider = null, Encoding Encoding = null, bool OutputGeneratedCode = false ) : System

Protected Methods

Method Description
CreateInstanceByType ( Type Type ) : TemplateCode
GetTemplateCodeTypeByFile ( String Name ) : Type
GetTemplateCodeTypeByString ( String TemplateString ) : Type

Method Details

CreateInstanceByType() protected method

protected CreateInstanceByType ( Type Type ) : TemplateCode
Type System.Type
return CSharpUtils.Templates.Runtime.TemplateCode

GetTemplateCodeByFile() public method

public GetTemplateCodeByFile ( String Name ) : TemplateCode
Name String
return CSharpUtils.Templates.Runtime.TemplateCode

GetTemplateCodeByString() public method

public GetTemplateCodeByString ( String TemplateString ) : TemplateCode
TemplateString String
return CSharpUtils.Templates.Runtime.TemplateCode

GetTemplateCodeTypeByFile() protected method

protected GetTemplateCodeTypeByFile ( String Name ) : Type
Name String
return System.Type

GetTemplateCodeTypeByString() protected method

protected GetTemplateCodeTypeByString ( String TemplateString ) : Type
TemplateString String
return Type

TemplateFactory() public method

public TemplateFactory ( ITemplateProvider TemplateProvider = null, Encoding Encoding = null, bool OutputGeneratedCode = false ) : System
TemplateProvider ITemplateProvider
Encoding Encoding
OutputGeneratedCode bool
return System

Property Details

CachedTemplatesByFile public_oe property

public Dictionary CachedTemplatesByFile
return Type>.Dictionary

Encoding public_oe property

public Encoding,System.Text Encoding
return System.Text.Encoding

OutputGeneratedCode protected_oe property

protected bool OutputGeneratedCode
return bool

TemplateProvider public_oe property

public ITemplateProvider TemplateProvider
return ITemplateProvider