Esempio n. 1
0
 /// <summary>Compiles an assembly that contains one class per each distinct expression found in given template.</summary>
 public static TemplateExpressionFactory CompileExpressions(Template template)
 {
     TemplateCompilation compilation = GenerateAssemblySourceCode(template);
     Assembly asm = CompileAssembly(template, compilation);
     TemplateExpressionFactory compiledExpressionFactory = new TemplateExpressionFactory(asm);
     return compiledExpressionFactory;
 }
Esempio n. 2
0
 private void EnsureTemplateIsCompiled()
 {
     if (this.compiledExpressionFactory == null)
         this.compiledExpressionFactory = TemplateCompiler.CompileExpressions(this);
 }