Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by [EMAIL PROTECTED]

http://bugzilla.ximian.com/show_bug.cgi?id=81224

--- shadow/81224        2007-03-24 16:08:54.000000000 -0500
+++ shadow/81224.tmp.29333      2007-03-24 16:08:54.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 81224
+Product: Mono: Compilers
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ConfigurationManager is not in the System.Configuration namespace
+
+The 2.0 compiler (unlike the 1.1 compiler) gives a warning when you use
+System.Configuration.ConfigurationSettings.AppSettings saying it is obsolete.
+
+This would be fine if it did not suggest to use
+System.Configuration.ConfigurationManager.AppSettings which does not exist
+in the namespace.  
+
+using System;
+
+class MyPoint
+{
+  public static main(string[] args)
+  {
+    //this generates CS016
+    string x =
+System.Configuration.ConfigurationSettings.AppSettings["x"].ToString();
+
+    //this line does not compile
+    string y =
+System.Configuration.ConfigurationManager.AppSettings["y"].ToString();
+  }
+}
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to