You could do string operation to construct path as below :
string path = path1 + "\\" + path2;
However, more portable and cleaner way would be to use Path.Combine as below :
Path.Combine(path1, path2);
The above avoid you to make manually ensuring the correctness of path separators.
No comments:
Post a Comment