I\'m needing to parse a path into parts from within a portable class library and get things like the filename, extension, just directory name, etc.
All of these met
I would use Uri class
Uri
var segments = new Uri("file://c:/dir1/dir2/a.txt").Segments
which is supported by PCL
http://msdn.microsoft.com/en-us/library/system.uri.aspx