System.Web.UI.Control.RenderChildren C# (CSharp) Method

RenderChildren() protected method

protected RenderChildren ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
return void
		protected internal virtual void RenderChildren (HtmlTextWriter writer) //DIT
		{
			if (_renderMethodDelegate != null) {
				_renderMethodDelegate (writer, this);
				return;
			}

			if (_controls == null)
				return;

			int len = _controls.Count;
			Control c;
			for (int i = 0; i < len; i++) {
				c = _controls [i];
				if (c == null)
					continue;
				ControlAdapter tmp = c.Adapter;
				if (tmp != null)
					c.RenderControl (writer, tmp);
				else
					c.RenderControl (writer);
			}
		}