protected GetFirstAscendingBlock ( String BlockName ) : RenderDelegate | ||
BlockName | String | |
return | RenderDelegate |
protected RenderDelegate GetFirstAscendingBlock(String BlockName)
{
if (this.Blocks.ContainsKey(BlockName))
{
return this.Blocks[BlockName];
}
if (this.ParentTemplate != null)
{
return this.ParentTemplate.GetFirstAscendingBlock(BlockName);
}
throw(new Exception(String.Format("Can't find ascending parent block '{0}'", BlockName)));
}