* Uri.cs:
(EscapeString): no need to turn the string into a char[] when calling
GetBytes.
svn path=/trunk/mcs/; revision=44236
+2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * Uri.cs:
+ (EscapeString): no need to turn the string into a char[] when calling
+ GetBytes.
+
2005-03-20 Joshua Tauberer <tauberer@for.net>
* Uri.cs: Some pedantic changes to the text of a few exceptions.
if (str == null)
return String.Empty;
- byte [] data = Encoding.UTF8.GetBytes (str.ToCharArray ());
+ byte [] data = Encoding.UTF8.GetBytes (str);
StringBuilder s = new StringBuilder ();
int len = data.Length;
for (int i = 0; i < len; i++) {