using System;
using System.Configuration;
+using System.ComponentModel;
#if NET_2_0
static TypeElement ()
{
- typeProp = new ConfigurationProperty ("type", typeof (Type), null, ConfigurationPropertyOptions.IsKey);
+ typeProp = new ConfigurationProperty ("type", typeof (Type), null, new TypeTypeConverter(),
+ null, ConfigurationPropertyOptions.IsKey);
properties = new ConfigurationPropertyCollection ();
properties.Add (typeProp);
[MonoTODO]
public TypeElement (string type)
+ : this (Type.GetType (type))
{
- /* XXX Type */
}
public TypeElement ()
{
}
-#if notyet
- [TypeConverter (typeof (TypeAndNameConverter))]
-#endif
+ [TypeConverter (typeof (TypeTypeConverter))]
[ConfigurationProperty ("type", Options = ConfigurationPropertyOptions.IsKey)]
public Type Type {
get { return (Type) base [typeProp];}