When I create a uri with dot segments:
var uri = new Uri("http://localhost/../../g");
The uri class removes the ../
segments and the result uri becomes:
http://localhost/g
When there is a path before the dots:
var uri = new Uri("http://localhost/a/b/c/./../../g");
// Result: http://localhost/a/g
Looks like the Uri
class is following the standart (Page 33 - remove_dot_segments), but is there any way to keep dot segments instead of automatically resolving the target uri, using Uri class? Or do I need a custom implementation?