//
using System;
+using System.Collections;
+using System.ComponentModel;
using System.Configuration;
-#if NET_2_0
namespace System.Web.Configuration {
static WebControlsSection ()
{
- clientScriptsLocationProp = new ConfigurationProperty ("clientScriptsLocation", typeof (string), "/aspnet_client/{0}/{1}/", ConfigurationPropertyOptions.IsRequired);
+ clientScriptsLocationProp = new ConfigurationProperty ("clientScriptsLocation", typeof (string), "/aspnet_client/{0}/{1}/",
+ TypeDescriptor.GetConverter (typeof (string)),
+ PropertyHelper.NonEmptyStringValidator,
+ ConfigurationPropertyOptions.IsRequired);
properties = new ConfigurationPropertyCollection ();
properties.Add (clientScriptsLocationProp);
}
- [MonoTODO]
- protected override object GetRuntimeObject ()
+ protected internal override object GetRuntimeObject ()
{
- return this;
+ Hashtable ht = new Hashtable ();
+
+ ht.Add ("clientScriptsLocation", ClientScriptsLocation);
+
+ return ht;
}
[StringValidator (MinLength = 1)]
get { return (string) base [clientScriptsLocationProp];}
}
- protected override ConfigurationPropertyCollection Properties {
+ protected internal override ConfigurationPropertyCollection Properties {
get { return properties; }
}
}
-#endif