I can’t figure out why Control.CreateChildControls is visible in web page’s code-behind class. Namely, Control.CreateChildControls is defined as protected internal, which means that method is visible only to derived classes located inside the same assembly as Control class. So how is that possible since as as far as I know, web-page class is not compiled into same assembly as Control class ( System.Web.dll )?
thanx
Unfortunately, the wording of ‘protected internal’ is misleading. It means ‘protected’ or ‘internal’ and not ‘protected’ and ‘internal’.
In your %program files%\microsoft visual studio 9.0\vc#\Specifications\1033, you have the C# reference manual, this is at section 1.6.2.
Therefore a derived class can use it.