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)));
		}