public static string UrlPathEncode(string s) { #if NET_4_0 return(HttpEncoder.Current.UrlPathEncode(s)); #else return(HttpEncoder.UrlPathEncode(s)); #endif }
public static string UrlPathEncode(string s) { #if NET_4_0 return(HttpEncoder.Current.UrlPathEncode(s)); #elif SILVERLIGHT return(Windows.Browser.HttpUtility.UrlEncode(s)); #else return(HttpEncoder.UrlPathEncode(s)); #endif }
public static string UrlPathEncode(string str) => HttpEncoder.UrlPathEncode(str);
public static string UrlPathEncode(string str) { return(HttpEncoder.UrlPathEncode(str)); }