Fix for running against RabbitMQ 2.2
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / NamespaceInfo.cs
index 969b81e86f4f4bc5bf3c092fa77bc46808432246..892a5b571bc6c510dcbdd686101578611d07eaa6 100644 (file)
@@ -45,8 +45,13 @@ namespace System.Web.Configuration
 
                static NamespaceInfo ()
                {
-                       namespaceProp = new ConfigurationProperty ("namespace", typeof (string), "");
+                       namespaceProp = new ConfigurationProperty ("namespace", typeof (string), null,
+                                                                  TypeDescriptor.GetConverter (typeof (string)),
+                                                                  PropertyHelper.NonEmptyStringValidator,
+                                                                  ConfigurationPropertyOptions.None);
                        properties = new ConfigurationPropertyCollection ();
+
+                       properties.Add (namespaceProp);
                }
 
                public NamespaceInfo (string name)