2 // System.Web.Configuration.ModuleItem
5 // Patrik Torstensson (ptorsten@hotmail.com)
9 namespace System.Web.Configuration {
12 private string _typeName;
15 public ModuleItem(string name, string type) {
19 _type = Type.GetType (type, true);
20 if (!typeof(IHttpModule).IsAssignableFrom(_type))
21 throw new HttpException(HttpRuntime.FormatResourceString("type_not_module"));
24 public ModuleItem(string name, Type type) {
25 _typeName = type.ToString ();
28 if (!typeof(IHttpModule).IsAssignableFrom(_type))
29 throw new HttpException(HttpRuntime.FormatResourceString("type_not_module"));
32 public IHttpModule Create() {
33 return (IHttpModule) HttpRuntime.CreateInternalObject(_type);
42 public bool IsMatch (string name)
44 return (_type.Name == name || _type.FullName == name);
47 public string ModuleName {