Author: mhabersack
Date: 2006-11-15 19:31:54 -0500 (Wed, 15 Nov 2006)
New Revision: 67962

Modified:
   trunk/mcs/class/System/System.CodeDom.Compiler/Compiler.cs
Log:
A fix for a compilation problem. Thanks to Chris Toshok for showing me the 
light :)

Modified: trunk/mcs/class/System/System.CodeDom.Compiler/Compiler.cs
===================================================================
--- trunk/mcs/class/System/System.CodeDom.Compiler/Compiler.cs  2006-11-16 
00:13:33 UTC (rev 67961)
+++ trunk/mcs/class/System/System.CodeDom.Compiler/Compiler.cs  2006-11-16 
00:31:54 UTC (rev 67962)
@@ -29,6 +29,9 @@
 //
 
 #if NET_2_0 && CONFIGURATION_DEP
+extern alias PrebuiltSystem;
+using TypeDescriptor = PrebuiltSystem.System.ComponentModel.TypeDescriptor;
+
 using System;
 using System.ComponentModel;
 using System.Configuration;
@@ -52,7 +55,7 @@
                        languageProp = new ConfigurationProperty("language", 
typeof (string), "", ConfigurationPropertyOptions.IsRequired | 
ConfigurationPropertyOptions.IsKey);
                        typeProp = new ConfigurationProperty("type", typeof 
(string), "", ConfigurationPropertyOptions.IsRequired);
                        warningLevelProp = new 
ConfigurationProperty("warningLevel", typeof (int), 0,
-                                                                    null, 
//TypeDescriptor.GetConverter (typeof (int)),
+                                                                    
TypeDescriptor.GetConverter (typeof (int)),
                                                                     new 
IntegerValidator (0, 4),
                                                                     
ConfigurationPropertyOptions.None);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to