C# Class SharpTAL.TemplateInfo

ファイルを表示 Open project: lck/SharpTAL Class Usage Examples

Public Properties

Property Type Description
GeneratedSourceCode string
GeneratorVersion string
GlobalsTypes Type>.Dictionary
ImportedNamespaces HashSet>.Dictionary
ImportedPrograms Program>.Dictionary
MainProgram Program
ReferencedAssemblies List
RenderMethod System.Reflection.MethodInfo
TemplateBody string
TemplateKey string

Property Details

GeneratedSourceCode public_oe property

Contains the C# source code used to compile the assembly.
public string GeneratedSourceCode
return string

GeneratorVersion public_oe property

Template generator version.
public string GeneratorVersion
return string

GlobalsTypes public_oe property

Types of global objects The key contains the object name. The value contains the object type.
public Dictionary GlobalsTypes
return Type>.Dictionary

ImportedNamespaces public_oe property

Dictionary of paths to imported programs hashed by namespace created by "metal:import" command. The key contains the imported program namespace. The value contains the list of full paths to template files.
public Dictionary> ImportedNamespaces
return HashSet>.Dictionary

ImportedPrograms public_oe property

Dictionary of TemplatePrograms compiled from templates imported by "metal:import" command. The key contains the full path to the template file. The value contains the compiled program.
public Dictionary ImportedPrograms
return Program>.Dictionary

MainProgram public_oe property

Main template program compiled from TemplateBody.
public Program MainProgram
return Program

ReferencedAssemblies public_oe property

List of referenced assemblies.
public List ReferencedAssemblies
return List

RenderMethod public_oe property

Reference to template render method.
public MethodInfo,System.Reflection RenderMethod
return System.Reflection.MethodInfo

TemplateBody public_oe property

Template body.
public string TemplateBody
return string

TemplateKey public_oe property

Contains a unique key that represent the template in the template cache. The template key is computed from the following parts: Template body hash Global types hash Imported templates hash Referenced assemblies hash
public string TemplateKey
return string