[Mono-dev] How To know in runtime inside a C# program
cetin.sert at gmail.com
Thu Jul 26 05:06:01 EDT 2007
You could use
which returns the appropriate character for your platform.
On 26/07/07, josepascual <josepascual at almudi.com> wrote:
> Hi Everyone,
> I'm doing a program in C# using mono. I want to run it in win32 and linux.
> have a problem with '/' and '\' for directory
> in win32 and linux.
> How Can I know in runtime if I'm in linux (unix) or in Windows to choose
> for windows and '/' for linux in path for files?
> thank you,
> Jose Pascual
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list