Ejemplo n.º 1
0
        private void UriBuilderTest()
        {
            //Uri url = new Uri("http://localhost/rest/something/browse").
            Uri url = new Uri("/Shared/Error").
                      AddQueryStringParam("page", "0").
                      AddQueryStringParam("pageSize", "200");

            ConsoleDisplay.ShowObject(url, nameof(url));
            url = url.AddQueryStringParam("id", 555.ToString());
            ConsoleDisplay.ShowObject(url, nameof(url));
        }