CSharpUtils.Templates.Runtime.TemplateCode.GetFirstAscendingBlock C# (CSharp) Метод

GetFirstAscendingBlock() защищенный Метод

protected GetFirstAscendingBlock ( String BlockName ) : RenderDelegate
BlockName String
Результат 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)));
		}