[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]pnetlib platform dep?

From: Rhys Weatherley
Subject: Re: [DotGNU]pnetlib platform dep?
Date: Wed, 06 Mar 2002 14:14:50 +1000

S11001001 wrote:

> The System.Uri.LocalPath (or something like that) spec says that it should
> create a platform-specific path, using its characters, etc. So
> file:///usr/local/bin/ilrun
> becomes
> /usr/local/bin/ilrun
> on GNU,
> usr:local:bin:ilrun
> on Mac,
> c:\usr\local\bin\ilrun
> on Windows (actually, not sure about that one)
> so my question is about things that are platform-specific, but not implying
> that their specificity requires internal impl. So should I stick a
> [MethodImpl(MethodImplOptions.InternalCall)] on it, or what?

There should already be support for this particular thing
in the system.  See "System.IO.Path" for characters that
can be used as directory separators.  These are already
handled using InternalCall's in "Platform.DirMethods".
So, it should be possible to implement "Uri.LocalPath"
completely in C#.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]