System.Web.Compilation.AspComponentFoundry.CreateComponent C# (CSharp) Method

CreateComponent() private method

private CreateComponent ( Foundry foundry, string tagName, string prefix, string tag ) : System.Web.Compilation.AspComponent
foundry Foundry
tagName string
prefix string
tag string
return System.Web.Compilation.AspComponent
		AspComponent CreateComponent (Foundry foundry, string tagName, string prefix, string tag)
		{
			string source, ns;
			Type type;

			type = foundry.GetType (tag, out source, out ns);
			if (type == null)
				return null;
			
			AspComponent ret = new AspComponent (type, ns, prefix, source, foundry.FromConfig);
			Dictionary <string, AspComponent> components = Components;
			components.Add (tagName, ret);
			return ret;
		}