<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.5" />

UriExtensions

public static class UriExtensions
Extension methods to allow strongly typed objects to be read from the query component of Uri instances.
public static NameValueCollection ParseQueryString(this Uri address)

Parses the query portion of the specified Uri.

public static bool TryReadQueryAs(this Uri address, Type type, out object value)

Reads HTML form URL encoded data provided in the Uri query component as an Object of the given type.

public static bool TryReadQueryAs<T>(this Uri address, out T value)

Reads HTML form URL encoded data provided in the Uri query component as an Object of type T.

public static bool TryReadQueryAsJson(this Uri address, out JObject value)

Reads HTML form URL encoded data provided in the Uri query component as a JObject object.