예제 #1
0
        public static string UrlEncodeQueryString(SchemalessUrl url)
        {
            var urlString = url.ToString();
            var filenameQueryFragmentPortion = Path.GetFileName(urlString);

            if (filenameQueryFragmentPortion != null)
            {
                return(urlString.PythonSubstring(0, -filenameQueryFragmentPortion.Length) +
                       HttpUtility.UrlEncode(filenameQueryFragmentPortion));
            }

            return(urlString);
        }
예제 #2
0
 public SchemalessUrl(SchemalessUrl url)
 {
     Url = url.ToString();
 }