[Mono-list] [Q] cross-platform paths.

Daniel Carrera dcarrera@math.umd.edu
Fri, 23 Jul 2004 14:28:07 -0400


On Fri, Jul 23, 2004 at 02:03:07PM -0400, Duncan Mak wrote:
> On Fri, 2004-07-23 at 13:36, Daniel Carrera wrote:
> > I just read on another post that there is an Environment class.  But I 
> > can't find it in the class list.  Where is it?
> 
> It's System.Environment in mscorlib.

Thanks.

It's odd that I can't find this neither in Microsofot's class reference 
list, nor in Monodoc.  But that's okay, I just googled it.

Now, I just tried this on a Linux 2.6.0 kernel and the result was:

Unix 2.6.0.0

It looks like Mono doesn't distinguish between Linux and Unix.  Is that a 
bug?  Or is it in purpose?

I was hoping for more granularity.  I was hoping I'd be able to tell 
appart Linux, Mac OS X, FreeBSD and Solaris.

> As for path names, you can also use the System.IO.Path.Combine () method
> to create paths. It's easier than adding strings together.

Thanks.  I'll try it out.

Cheers,
-- 
Daniel Carrera | No trees were harmed in the generation of this
PhD student.   | e-mail.  A significant number of electrons were,
Math Dept. UMD | however, severely inconvenienced.