28 for (
int i = 0; i <
count; i++)
30 string text = allKeys[i];
39 if (!
string.IsNullOrEmpty(
text))
67 int num = ((
length > 0 && query[0] ==
'?') ? 1 : 0);
70 return httpQSCollection;
76 for (
int i = num; i <
length; i++)
78 if (num2 == -1 && query[i] ==
'=')
82 else if (query[i] ==
'&')
96 name =
UrlDecode(query.Substring(num, num2 - num - 1), encoding);
103 string value =
UrlDecode(query.Substring(num2, num3 - num2), encoding);
106 return httpQSCollection;
109 [
return: NotNullIfNotNull(
"s")]
120 [
return: NotNullIfNotNull(
"s")]
126 [
return: NotNullIfNotNull(
"value")]
141 [
return: NotNullIfNotNull(
"s")]
152 [
return: NotNullIfNotNull(
"str")]
158 [
return: NotNullIfNotNull(
"str")]
164 [
return: NotNullIfNotNull(
"str")]
174 [
return: NotNullIfNotNull(
"bytes")]
184 [
return: NotNullIfNotNull(
"bytes")]
194 [
return: NotNullIfNotNull(
"str")]
200 [
return: NotNullIfNotNull(
"bytes")]
210 [Obsolete(
"This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncodeToBytes(String).")]
211 [
return: NotNullIfNotNull(
"str")]
221 [
return: NotNullIfNotNull(
"str")]
227 [
return: NotNullIfNotNull(
"bytes")]
237 [
return: NotNullIfNotNull(
"str")]
243 [
return: NotNullIfNotNull(
"str")]
253 [
return: NotNullIfNotNull(
"bytes")]
263 [
return: NotNullIfNotNull(
"str")]
274 [
return: NotNullIfNotNull(
"bytes")]
280 [Obsolete(
"This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncode(String).")]
281 [
return: NotNullIfNotNull(
"str")]
287 [
return: NotNullIfNotNull(
"str")]
293 [
return: NotNullIfNotNull(
"bytes")]
299 [
return: NotNullIfNotNull(
"bytes")]
313 if (!addDoubleQuotes)
317 return "\"" +
text +
"\"";
virtual ? string[] GetValues(string? name)
virtual ? string[] AllKeys
void Add(NameValueCollection c)
static ? string ToString(object? value)
static CultureInfo CurrentCulture
virtual byte[] GetBytes(char[] chars)
override string ToString()
StringBuilder Append(char value, int repeatCount)
override string ToString()
static ? string HtmlEncode(string? s)
static string JavaScriptStringEncode(string? value, bool addDoubleQuotes)
static ? byte[] UrlEncodeToBytes(byte[]? bytes, int offset, int count)
static ? string UrlEncodeUnicode(string? str)
static ? string UrlPathEncode(string? str)
static ? string UrlDecode(string? str)
static ? string UrlDecode(string? str, Encoding e)
static ? string UrlEncode(string? str, Encoding e)
static ? string HtmlEncode(object? value)
static ? string UrlDecode(byte[]? bytes, Encoding e)
static ? string UrlEncode(byte[]? bytes, int offset, int count)
static ? string UrlEncode(string? str)
static ? byte[] UrlEncodeToBytes(byte[]? bytes)
static ? string UrlDecode(byte[]? bytes, int offset, int count, Encoding e)
static ? byte[] UrlEncodeToBytes(string? str, Encoding e)
static ? byte[] UrlDecodeToBytes(string? str, Encoding e)
static ? byte[] UrlDecodeToBytes(byte[]? bytes, int offset, int count)
static NameValueCollection ParseQueryString(string query, Encoding encoding)
static void HtmlDecode(string? s, TextWriter output)
static ? byte[] UrlEncodeUnicodeToBytes(string? str)
static ? byte[] UrlEncodeToBytes(string? str)
static void HtmlEncode(string? s, TextWriter output)
static NameValueCollection ParseQueryString(string query)
static ? string UrlEncode(byte[]? bytes)
static string JavaScriptStringEncode(string? value)
static void HtmlAttributeEncode(string? s, TextWriter output)
static ? byte[] UrlDecodeToBytes(string? str)
static ? string HtmlDecode(string? s)
static ? byte[] UrlDecodeToBytes(byte[]? bytes)
static ? string HtmlAttributeEncode(string? s)
static byte[] UrlEncode(byte[] bytes, int offset, int count, bool alwaysCreateNewReturnValue)
static string HtmlDecode(string value)
static string UrlEncodeUnicode(string value)
static string JavaScriptStringEncode(string value)
static string HtmlEncode(string value)
static string UrlPathEncode(string value)
static string HtmlAttributeEncode(string value)
static byte[] UrlDecode(byte[] bytes, int offset, int count)