[Mono-winforms-list] Directory slashes

Kornél Pál kornelpal at hotmail.com
Sun Oct 30 10:34:03 EST 2005


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" <armand at dotnet.org.za>
To: <mono-winforms-list at lists.ximian.com>
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: mono-winforms-list-bounces at lists.ximian.com
[mailto:mono-winforms-list-bounces at lists.ximian.com] On Behalf Of Pavel
Bansky
Sent: 30 October 2005 01:12 PM
To: mono-winforms-list at lists.ximian.com
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  -  Mono-winforms-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list



More information about the Mono-winforms-list mailing list