Hi,

I suggest to use these constants only when needed. If you want to modify or
split paths use the static methods of System.IO.Path class like Path.Combine
as they are guaranted to handle paths according to target OS semantics.

Kornél

----- Original Message -----
From: "Armand du Plessis" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, October 30, 2005 12:55 PM
Subject: RE: [Mono-winforms-list] Directory slashes


You can use the System.IO.Path.DirectorySeparatorChar to get a platform
specific directory seperator character. (And Path.AltDirectorySeparatorChar
to get the alternative. Ie. / on windows)

Hth,

Armand

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pavel
Bansky
Sent: 30 October 2005 01:12 PM
To: [email protected]
Subject: [Mono-winforms-list] Directory slashes

Hi All,

is there some constat for directory path slashes? I mean windows using
dir\subdir\file but unix use dir/dir/file . I realize that one can use unix
paths with / on windows. Anyway is there some cleaner way than relying on
windows?

 thanks

     Pavel


--
__________________________________________________________

Pavel Bánský
levap at bansky.net                        I write code...
__________________________________________________________
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to