System.Web.Http.HttpRequestMessageExtensions.GetQueryStrings C# (CSharp) Method

GetQueryStrings() public static method

Returns a dictionary of QueryStrings that's easier to work with than GetQueryNameValuePairs KevValuePairs collection. If you need to pull a few single values use GetQueryString instead.
public static GetQueryStrings ( this request ) : string>.Dictionary
request this
return string>.Dictionary
        public static Dictionary<string, string> GetQueryStrings( this HttpRequestMessage request )
        {
            return request.GetQueryNameValuePairs()
                          .ToDictionary( kv => kv.Key, kv => kv.Value, StringComparer.OrdinalIgnoreCase );
        }