[build] Prevent cyclic targets from being built in parallel
[mono.git] / mcs / class / System / System.Net.Configuration / WebRequestModuleElementCollection.cs
index 2290f8887377e291b060ad5f4df9569e34714da3..579dec3bc2a02fb8948ce75d60a9b2b120806e96 100644 (file)
@@ -30,7 +30,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0 && CONFIGURATION_DEP
+#if CONFIGURATION_DEP
 
 using System.Configuration;
 
@@ -80,10 +80,9 @@ namespace System.Net.Configuration
                        return new WebRequestModuleElement ();
                }
 
-               [MonoTODO ("argument exception?")]
                protected override object GetElementKey (ConfigurationElement element)
                {
-                       if (!(element is WebRequestModuleElementCollection))
+                       if (!(element is WebRequestModuleElement))
                                throw new ArgumentException ("element");
                        return ((WebRequestModuleElement)element).Prefix;
                }