In 4.0 the constructors of TypeConverter.SimplePropertyDescriptor are protected.
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Tue, 14 Sep 2010 08:06:38 +0000 (10:06 +0200)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Tue, 14 Sep 2010 08:14:34 +0000 (10:14 +0200)
* TypeConverter.cs: The constructors of SimplePropertyDescriptor
are protected in 4.0.

mcs/class/System/System.ComponentModel/TypeConverter.cs

index 419764a28e36a7c0b4f0368538da67b4b62c6af1..a9a6a039f755418bece3451e9edc30641640ee1d 100644 (file)
@@ -321,14 +321,24 @@ namespace System.ComponentModel
                        private Type componentType;
                        private Type propertyType;
 
-                       public SimplePropertyDescriptor (Type componentType,
+#if NET_4_0
+                       protected
+#else
+                       public
+#endif
+                       SimplePropertyDescriptor (Type componentType,
                                                         string name,
                                                         Type propertyType) :
                                this (componentType, name, propertyType, null)
                        {
                        }
 
-                       public SimplePropertyDescriptor (Type componentType,
+#if NET_4_0
+                       protected
+#else
+                       public
+#endif
+                       SimplePropertyDescriptor (Type componentType,
                                                         string name,
                                                         Type propertyType,
                                                         Attribute [] attributes) : base (name, attributes)