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

InitControlsCache() private method

private InitControlsCache ( ) : Hashtable
return System.Collections.Hashtable
		Hashtable InitControlsCache ()
		{
			if (_controlsCache != null)
				return _controlsCache;

			if ((this.stateMask & IS_NAMING_CONTAINER) != 0 || Parent == null)
				//LAMESPEC: MS' docs don't mention it, but FindControl is case insensitive.
				_controlsCache = new Hashtable (StringComparer.OrdinalIgnoreCase);
			else
				_controlsCache = Parent.InitControlsCache ();

			return _controlsCache;
		}