c# - Is it correct to use the Uri class to manipulate folders? -


i know if correct use uri class create local path "c:/my folder/my subfolder" ?

i ask question because when manipulate uri errors.

string foo = new uri(uri1, uri2).absolutepath; 

the absolutepath return absolute path replace space %20. should do? see 2 solutions

  1. stop using uri , replace correct class.
  2. replace %20 space. dont't one

you use path class.

path.combine(@"c:\my folder", "my subfolder"); 

Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -