The Path class is in the System.IO namespace, so you could place a
"using System.IO" at the top of your file, and then just call
Path.DirectorySeparatorChar yourself in your C# code.
No need for an alternative of C# version because Path.DirectorySeparatorChar
is in the System.IO namespace, add a ‘using System.IO;’ at the top of your cs
file and use Path.DirectorySeparatorChar freely within.