public override Type GetType(string componentName, out string source, out string ns) { source = null; ns = null; Type type = null; Foundry foundry = tagnames [componentName] as Foundry; if (foundry != null) { return(foundry.GetType(componentName, out source, out ns)); } if (assemblyFoundry != null) { try { type = assemblyFoundry.GetType(componentName, out source, out ns); return(type); } catch { } } string msg = String.Format("Type {0} not registered for prefix {1}", componentName, tagPrefix); throw new ApplicationException(msg); }
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); }
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; }