[Mono-list] How can the assembly check the OS it's on?

Charles-Louis charlouis.mono@wanadoo.be
07 Mar 2003 16:44:37 +0100


Hi,

I was wondering if it was possible for an assembly to now on which OS it
is running?

eg. if I'm running on windows, I'll use the Windows System logs, and if
I'm on Linux, i'll use the Linux logs...

I'd like my compiled assembly to detect it, and I'd rather not use an
App.config file for this.

Is this possible?

Thanks

-- 
Charles-Louis <charlouis.mono@wanadoo.be>