Using Visual Studio and .NET4:
string dirName = Path.GetDirectoryName("C:\\Demo
Projects\\Data");
string fileName = Path.GetFileName("C:\\Demo Projects\\Data");
gives:
dirName = "C:\\Demo Projects"
fileName = Data
Using Mono/MonoTouch, the same code gives:
dirName = "C:\\Demo Projects\\Data"
fileName = ""
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Mono-bug-in-System-IO-Path-tp4587721p4587721.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch