Call more appropriate string.TrimStart overload.
authorMarcos Henrich <marcos.henrich@xamarin.com>
Fri, 25 Jul 2014 12:54:29 +0000 (13:54 +0100)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Fri, 25 Jul 2014 12:54:29 +0000 (13:54 +0100)
mcs/class/System/System/UriParseComponents.cs

index 0fe361cb07b4387266751cf3a3a920f97a147b29..205d475e4a30002b141614a34ad08896164b9ae7 100644 (file)
@@ -175,7 +175,7 @@ namespace System {
                        state.elements.delimiter = "://";
                        state.elements.isUnc = true;
 
-                       part = part.TrimStart (new char [] {'\\'});
+                       part = part.TrimStart ('\\');
                        int pos = part.IndexOf ('\\');
                        if (pos > 0) {
                                state.elements.path = part.Substring (pos);