Class HttpUtilityExtensions
This is an extension implementation of the most common methods on the HttpUtility class.
Inheritance
System.Object
HttpUtilityExtensions
Namespace: Cuemon.Web
Assembly: Cuemon.Web.dll
Syntax
public static class HttpUtilityExtensions
Methods
| Improve this DocUrlDecode(String)
Converts a string that has been encoded for transmission in a URL into a decoded string.
Declaration
public static string UrlDecode(this string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The string to decode. |
Returns
Type | Description |
---|---|
System.String | A decoded string. |
UrlDecode(String, Encoding)
Converts a string that has been encoded for transmission in a URL into a decoded string, using the specified encoding
object.
Declaration
public static string UrlDecode(this string value, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The string to decode. |
System.Text.Encoding | encoding | The System.Text.Encoding that specifies the decoding scheme. |
Returns
Type | Description |
---|---|
System.String | A decoded string. |
UrlEncode(String)
Encodes a URL string.
Declaration
public static string UrlEncode(this string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The text to encode. |
Returns
Type | Description |
---|---|
System.String | An encoded string. |
UrlEncode(String, Encoding)
Encodes a URL string, using the specified encoding
object.
Declaration
public static string UrlEncode(this string value, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
System.Text.Encoding | encoding | The System.Text.Encoding that specifies the encoding scheme. |
Returns
Type | Description |
---|---|
System.String | An encoded string. |