UriDecode() public static method

public static UriDecode ( string value ) : string
value string
return string
Beispiel #1
0
        public string UrlDecode(string text, Encoding encoding)
        {
            if (encoding == null)
            {
                throw new ArgumentNullException("encoding");
            }

            return(HttpUtil.UriDecode(text, encoding));
        }
Beispiel #2
0
        private string ParseContentDispositionItem(string value)
        {
            if (value.Length == 0)
            {
                return(value);
            }

            if (value.Length >= 2 && value[0] == '"' && value[value.Length - 1] == '"')
            {
                value = value.Substring(1, value.Length - 2);
            }

            return(HttpUtil.UriDecode(value));
        }