Equivalent For Path.DirectorySeparatorChar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there an equivalent for "Path.DirectorySeparatorChar" (VB.Net) in c#?
 
Jim,

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.

Hope this helps.
 
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.

Brendan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top