Esempio n. 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);
        }
 public SchemalessUrl(SchemalessUrl url)
 {
     Url = url.ToString();
 }