Author: mhutch
Date: 2007-09-04 12:23:20 -0400 (Tue, 04 Sep 2007)
New Revision: 85303

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog
   trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core/Properties.cs
Log:
2007-09-04  Michael Hutchinson <[EMAIL PROTECTED]>

        * MonoDevelop.Core/Properties.cs: Fix compiler warnings. Note: one is 
          clearly a typo, but the fix changes the logic.



Modified: trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog       2007-09-04 
16:17:52 UTC (rev 85302)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog       2007-09-04 
16:23:20 UTC (rev 85303)
@@ -1,3 +1,8 @@
+2007-09-04  Michael Hutchinson <[EMAIL PROTECTED]>
+
+       * MonoDevelop.Core/Properties.cs: Fix compiler warnings. Note: one is 
+         clearly a typo, but the fix changes the logic.
+
 2007-09-04  Mike Krüger <[EMAIL PROTECTED]> 
 
        * MonoDevelop.Core/XmlReadHelper.cs: Changed the XmlReadHelper behavior 
- it

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core/Properties.cs
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core/Properties.cs  
2007-09-04 16:17:52 UTC (rev 85302)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core/Properties.cs  
2007-09-04 16:23:20 UTC (rev 85303)
@@ -67,7 +67,7 @@
                        if (o is string) {
                                try {
                                        return 
(T)converter.ConvertFromInvariantString (o.ToString ());
-                               } catch (Exception e) {
+                               } catch (Exception) {
                                        return default(T);
                                }
                        }
@@ -109,7 +109,7 @@
                {
                        object old = Get<object> (key);
                        properties[key] = val;
-                       if (!val.GetType ().IsClass || (val.GetType () is 
typeof(string)) {
+                       if (!val.GetType ().IsClass || (val is string)) {
                                if (defaultValues.ContainsKey (key)) {
                                        if (defaultValues[key] == val)
                                                properties.Remove (key);

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

Reply via email to