I want to use functions of Path class (GetDirectoryName, GetFileName, Combine,etc.) with paths in URL format with slash (/).
GetDirectoryName
GetFileName
Combine
E
For GetDirectoryName(), you can use
GetDirectoryName()
pageRoot = uri.Remove(uri.LastIndexOf('/') + 1);