/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }