C# (non-abstract) class to represent paths

Posted by user289770 on Stack Overflow See other posts from Stack Overflow or by user289770
Published on 2010-06-17T08:20:01Z Indexed on 2010/06/17 8:23 UTC
Read the original article Hit count: 121

Filed under:
|
|

I'm looking for a C# class that represents a file system path. I would like to use it (instead of strings) as the data type of variables and method arguments (top reasons: type safety, concat-proof, logical comparisons).

  • System.IO.Path provides most of the functionality I want, but it is abstract.
  • System.IO.FileInfo, as I understand, performs IO operations to do its job. I only want a wrapper for the path string.

Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about path