2008-05-18 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Sun, 18 May 2008 16:16:00 +0000 (16:16 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Sun, 18 May 2008 16:16:00 +0000 (16:16 -0000)
* SectionGroupInfo.cs: Use String.IsNullOrEmpty inside 2.0 code.
[Found using Gendarme]

svn path=/trunk/mcs/; revision=103422

mcs/class/System.Configuration/System.Configuration/ChangeLog
mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs

index 37501214dcda2e9141c3639388b744a627b33054..3184d1cdb07fb805ebf82feff04a4314bfcb7d53 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-18  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * SectionGroupInfo.cs: Use String.IsNullOrEmpty inside 2.0 code.
+       [Found using Gendarme]
+
 2008-05-11  Roei Erez  <roeie@mainsoft.com>
 
        * SectionGroupInfo.cs: fix loading a SectionGroup without sections as childern.
index 791da13e395240791168afa4b13a6edd1720f7a7..b564505cf0f8ae88c2220b7e3d5b3ceba6b5d9d2 100644 (file)
@@ -251,7 +251,7 @@ namespace System.Configuration
                                ThrowException ("Unrecognized attribute.", reader);
 
                        string removeValue = reader.Value;
-                       if (removeValue == null || removeValue.Length == 0)
+                       if (String.IsNullOrEmpty (removeValue))
                                ThrowException ("Empty name to remove", reader);
 
                        reader.MoveToElement ();