private static string GetQueryString(NameValueCollection collection)
		{
			return collection
				.AsKeyValuePairs()
				.Join(pair => pair.Key == null ? pair.Value : string.Concat(pair.Key, "=", pair.Value), "&");
		}
Пример #2
0
 private static string BuildQueryString(NameValueCollection collection) {
     return collection.AsKeyValuePairs().ToConcatenatedString(pair => pair.Key == null ? pair.Value : String.Format("{0}={1}", pair.Key, pair.Value), "&");
 }