X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web.Configuration_2.0%2FHttpModuleAction.cs;h=5e71b8f5edbfc0e1cc777c95e50b16f016f4f052;hb=af9585a7b39fde0b72b7354cb66bbd845cfcc795;hp=2be94a227c35fabe1b8af1a5544d3972de6b28f8;hpb=948dbf8d4581ac17f5420cc4f7dc375e3c502576;p=mono.git diff --git a/mcs/class/System.Web/System.Web.Configuration_2.0/HttpModuleAction.cs b/mcs/class/System.Web/System.Web.Configuration_2.0/HttpModuleAction.cs index 2be94a227c3..5e71b8f5edb 100644 --- a/mcs/class/System.Web/System.Web.Configuration_2.0/HttpModuleAction.cs +++ b/mcs/class/System.Web/System.Web.Configuration_2.0/HttpModuleAction.cs @@ -46,11 +46,11 @@ namespace System.Web.Configuration static HttpModuleAction () { - nameProp = new ConfigurationProperty ("name", typeof (string), "", + nameProp = new ConfigurationProperty ("name", typeof (string), null, TypeDescriptor.GetConverter (typeof (string)), PropertyHelper.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); - typeProp = new ConfigurationProperty ("type", typeof (string), "", ConfigurationPropertyOptions.IsRequired); + typeProp = new ConfigurationProperty ("type", typeof (string), "hoho", ConfigurationPropertyOptions.IsRequired); properties = new ConfigurationPropertyCollection (); properties.Add (nameProp); properties.Add (typeProp); @@ -62,14 +62,12 @@ namespace System.Web.Configuration { } - [MonoTODO] public HttpModuleAction (string name, string type) { this.Name = name; this.Type = type; } - [MonoTODO] static void ValidateElement (object o) { /* XXX do some sort of element validation here? */ @@ -81,7 +79,7 @@ namespace System.Web.Configuration [StringValidator (MinLength = 1)] [ConfigurationProperty ("name", DefaultValue = "", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)] - public new string Name { + public string Name { get { return (string)base[nameProp]; } set { base[nameProp] = value; } }