Browse Source

2006-01-22 Chris Toshok <[email protected]>

	* RootBuilder.cs (.cctor): use a 2.0 friendly hashtable ctor to
	quiet mcs.


svn path=/trunk/mcs/; revision=55917
Chris Toshok 20 years ago
parent
commit
99841fa9c7

+ 3 - 0
mcs/class/System.Web/System.Web.UI/ChangeLog

@@ -1,5 +1,8 @@
 2006-01-22  Chris Toshok  <[email protected]>
 
+	* RootBuilder.cs (.cctor): use a 2.0 friendly hashtable ctor to
+	quiet mcs.
+
 	* PageParser.cs (ProcessMainAttributes): i missed a
 	CONFIGURATION_2_0 block.
 

+ 4 - 0
mcs/class/System.Web/System.Web.UI/RootBuilder.cs

@@ -53,8 +53,12 @@ namespace System.Web.UI {
 
 		static RootBuilder ()
 		{
+#if NET_2_0
+			htmlControls = new Hashtable (StringComparer.InvariantCultureIgnoreCase);
+#else
 			htmlControls = new Hashtable (CaseInsensitiveHashCodeProvider.DefaultInvariant,
 						      CaseInsensitiveComparer.DefaultInvariant); 
+#endif
 
 			htmlControls.Add ("A", typeof (HtmlAnchor));
 			htmlControls.Add ("BUTTON", typeof (HtmlButton));