#if NET_2_0
using System;
+using System.ComponentModel;
using System.Configuration;
namespace System.Web.Configuration
static ProfileGroupSettings ()
{
- nameProp = new ConfigurationProperty ("name", typeof (string), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey);
- propertySettingsProp = new ConfigurationProperty ("", typeof (ProfilePropertySettingsCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);
+ nameProp = new ConfigurationProperty ("name", typeof (string), null,
+ TypeDescriptor.GetConverter (typeof (string)),
+ new ProfilePropertyNameValidator (),
+ ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey);
+ propertySettingsProp = new ConfigurationProperty ("", typeof (ProfilePropertySettingsCollection), null,
+ null,
+ PropertyHelper.DefaultValidator,
+ ConfigurationPropertyOptions.IsDefaultCollection);
properties = new ConfigurationPropertyCollection ();
properties.Add (nameProp);
[ConfigurationProperty ("name", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
public string Name {
- get {
- return (string)base [nameProp];
- }
- internal set{
- base [nameProp] = value;
- }
+ get { return (string)base [nameProp]; }
+ internal set{ base [nameProp] = value; }
}
[ConfigurationProperty ("", Options = ConfigurationPropertyOptions.IsDefaultCollection)]
public ProfilePropertySettingsCollection PropertySettings {
- get {
- return (ProfilePropertySettingsCollection) base [propertySettingsProp];
- }
+ get { return (ProfilePropertySettingsCollection) base [propertySettingsProp]; }
}
protected override ConfigurationPropertyCollection Properties {
- get {
- return properties;
- }
+ get { return properties; }
}
}
}