2008-01-12 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Sat, 12 Jan 2008 17:36:22 +0000 (17:36 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Sat, 12 Jan 2008 17:36:22 +0000 (17:36 -0000)
* ConfigurationLocationCollection.cs: Avoid infinite recursion.
Found using Gendarme.

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

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

index 2672fee37edc0712bc2f676885ff4414d92a69db..2147d85aee288042513fdd897bf1a426ca1daccf 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-12  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * ConfigurationLocationCollection.cs: Avoid infinite recursion. 
+       Found using Gendarme.
+
 2007-12-25  Konstantin Triger <kostat@mainsoft.com>
 
        * KeyValueInternalCollection.cs: properly override NameValueCollection
index fb50af6389b1c3ff6498629651ddee206f62748d..c5a439bfcf927ba8c5cc870d541b7d5671ad2ff2 100644 (file)
@@ -39,7 +39,7 @@ namespace System.Configuration {
                }
                
                public ConfigurationLocation this [int index] {
-                       get { return this [index] as ConfigurationLocation; }
+                       get { return InnerList [index] as ConfigurationLocation; }
                }
                
                internal void Add (ConfigurationLocation loc)