I want to make sure that path always ends with \
and I try to use Path.Combine as the code below.
I expect System.IO.Path.Combine("xxx", System.IO.Path.DirectorySeparatorChar.ToString())
to return xxx\
but it returns only \
The same goes for System.IO.Path.Combine("xxx", "\\", "zz")
which I expect xxx\zz
but it turns out to be \zz
Here are tests I have done.
I am not sure if this is a desired behavior or it's a bug.