Merge pull request #364 from directhex/master
[mono.git] / mcs / class / System.Configuration / System.Configuration / ConfigurationLockCollection.cs
index aebd7c8d26f5cce34540f15cb65b6dd8c24f0dc9..d282907c208bf24009a715b4f7165d1ee7bc1bb9 100644 (file)
@@ -122,11 +122,11 @@ namespace System.Configuration
                        return names.GetEnumerator ();
                }
 
-               [MonoTODO ("we can't possibly *always* return false here...")]
+               [MonoInternalNote ("we can't possibly *always* return false here...")]
                public bool IsReadOnly (string name)
                {
                        for (int i = 0; i < names.Count; i ++) {
-                               if (names[i] == name) {
+                               if ((string)names[i] == name) {
                                        /* this test used to switch off whether the collection was 'Exclude' or not
                                         * (the LockAll*Except collections), but that doesn't seem to be the crux of
                                         * it.  maybe this returns true if the element/attribute is locked in a parent