* Uri.cs: Fix the previous patch for 1.0 profile
svn path=/trunk/mcs/; revision=123186
+2009-01-13 Stephane Delcroix <sdelcroix@novell.com>
+
+ * Uri.cs: Fix the previous patch for 1.0 profile
+
2009-01-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* Uri.cs: avoid throwing exceptions when checking for the host name
if (length == 0)
return false;
uint number;
+#if NET_2_0
if (!UInt32.TryParse (captures [i], out number))
return false;
+#else
+ try {
+ number = UInt32.Parse (captures [i]);
+ } catch (Exception) {
+ return false;
+ }
+#endif
if (number > 255)
return false;
}