Пример #1
0
 /// <summary>
 /// URL escape
 /// </summary>
 /// <param name="data">The data to escaped</param>
 /// <returns>Returns the escaped data</returns>
 public static string Escape(string data)
 {
     return(s_defaultEscapeUtility.Escape(data));
 }
Пример #2
0
 /// <summary>
 /// URL escape
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <param name="flags">The flags to modify the escaping behavior</param>
 /// <returns>Returns the escaped data</returns>
 public static string Escape(string data, UrlEscapeFlags flags)
 {
     return(UrlEscapeUtility.Escape(data, flags));
 }
Пример #3
0
 /// <summary>
 /// URL escape
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <param name="encoding">The encoding to use</param>
 /// <returns>Returns the escaped data</returns>
 public static string Escape(string data, Encoding encoding)
 {
     return(UrlEscapeUtility.Escape(data, encoding));
 }
Пример #4
0
 /// <summary>
 /// URL escape for bytes
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <returns>Returns the escaped data</returns>
 public static string Escape(byte[] data)
 {
     return(UrlEscapeUtility.Escape(data));
 }
Пример #5
0
 /// <summary>
 /// URL escape
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <param name="encoding">The encoding to use to convert the string into a byte array</param>
 /// <param name="flags">The flags to modify the escaping behavior</param>
 /// <returns>Returns the escaped data</returns>
 public static string Escape(string data, Encoding encoding, UrlEscapeFlags flags)
 {
     return(UrlEscapeUtility.Escape(data, encoding, flags));
 }