Beispiel #1
0
        public static string UrlPathEncode(string s)
        {
#if NET_4_0
            return(HttpEncoder.Current.UrlPathEncode(s));
#else
            return(HttpEncoder.UrlPathEncode(s));
#endif
        }
Beispiel #2
0
 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
 }
Beispiel #3
0
 public static string UrlPathEncode(string str) => HttpEncoder.UrlPathEncode(str);
Beispiel #4
0
 public static string UrlPathEncode(string str)
 {
     return(HttpEncoder.UrlPathEncode(str));
 }