protected void SetAndRenderParentTemplate(String ParentTemplateFileName, TemplateContext Context)
{
this.ParentTemplate = Context.TemplateFactory.GetTemplateCodeByFile(ParentTemplateFileName);
this.ParentTemplate.ChildTemplate = this;
#if NET_4_5
this.ParentTemplate.LocalRenderAsync(Context);
#else
this.ParentTemplate.LocalRender(Context);
#endif
throw (new FinalizeRenderException());
}