//
// Authors:
// Chris Toshok (toshok@ximian.com)
+// Atsushi Enomoto (atsushi@ximian.com)
//
-// (C) 2006 Novell, Inc (http://www.novell.com)
+// (C) 2006-2007 Novell, Inc (http://www.novell.com)
//
//
using System;
using System.Configuration;
using System.ComponentModel;
+using System.Globalization;
+using System.Security.Permissions;
#if NET_2_0
new Int32Converter(), new IntegerValidator (0, Int32.MaxValue),
ConfigurationPropertyOptions.IsKey);
typeProp = new ConfigurationProperty ("type", typeof (Type), null,
- null, null, ConfigurationPropertyOptions.IsKey);
+ new TypeTypeConverter (),
+ null, ConfigurationPropertyOptions.IsKey);
properties = new ConfigurationPropertyCollection ();
properties.Add (groupProp);
{
}
- [ConfigurationProperty ("group", DefaultValue = "Low", Options = ConfigurationPropertyOptions.IsKey)]
+ [ConfigurationProperty ("group", DefaultValue = PriorityGroup.Low, Options = ConfigurationPropertyOptions.IsKey)]
public PriorityGroup Group {
get { return (PriorityGroup) base [groupProp];}
set { base[groupProp] = value; }
}
- [IntegerValidator]
- [ConfigurationProperty ("priority", DefaultValue = "0", Options = ConfigurationPropertyOptions.IsKey)]
+ [IntegerValidator (MaxValue = int.MaxValue)]
+ [ConfigurationProperty ("priority", DefaultValue = 0, Options = ConfigurationPropertyOptions.IsKey)]
public int Priority {
get { return (int) base [priorityProp];}
set { base[priorityProp] = value; }
}
- [TypeConverter]
+ [TypeConverter (typeof (TypeTypeConverter))]
[ConfigurationProperty ("type", Options = ConfigurationPropertyOptions.IsKey)]
public Type Type {
get { return (Type) base [typeProp];}
}
}
-
}
#endif