Is there an out of the box way to append a path to an existing Uri in C#?
What I have currently is something like this. To be clear, I'd like to avoid using uriBuilder.Path +=
because that way I'd have to specify path slashes myself.
string current = "https://www.test.com/api/test/something?something=123";
string stuff = "getsomething";
My Preferred output would be https://www.test.com/api/test/something/getsomething?something=123
. Of course, I could manually try to do it, but am I able to append the "getsomething" onto the path without losing the current one?