Merge pull request #2781 from alexanderkyte/inflated_method_header_leak
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / MenuItemStyleCollection.cs
index c9413e0b779a4462aea4426ecd05a20beb6ad108..bf0a297256e082e9800d5aa92f902c98d6d61802 100644 (file)
@@ -28,7 +28,6 @@
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 //
 
-#if NET_2_0
 
 using System;
 using System.Collections;
@@ -98,7 +97,13 @@ namespace System.Web.UI.WebControls
                {
                        ((MenuItemStyle)o).SetDirty ();
                }
+
+               // Present but not documented
+               protected override void OnInsert (int index, object value)
+               {
+                       // Why override?
+                       base.OnInsert (index, value);
+               }
        }
 }
 
-#endif