internal void ProcessUserControlRegistration(UserControlRegisterEntry ucRegisterEntry)
{
Type type = null;
if (_parser.FInDesigner)
{
// Get the designer to load the appropriate type
type = _parser.GetDesignTimeUserControlType(ucRegisterEntry.TagPrefix,
ucRegisterEntry.TagName);
}
else
{
// Compile it into a Type
type = _parser.GetUserControlType(ucRegisterEntry.UserControlSource.VirtualPathString);
}
if (type == null)
{
return;
}
if (_userControlRegisterEntries == null)
{
_userControlRegisterEntries = new Hashtable();
}
_userControlRegisterEntries[ucRegisterEntry.TagPrefix + ":" + ucRegisterEntry.TagName] = ucRegisterEntry;
// Register the new tag, including its prefix
RegisterTag(ucRegisterEntry.TagPrefix + ":" + ucRegisterEntry.TagName, type);
}