[Mono-list] Detecting mono at runtime
Andreas Färber
andreas.faerber at web.de
Fri May 30 05:15:15 EDT 2008
Hi,
Am 29.05.2008 um 10:55 schrieb Zappo:
> I'd like to be able to write something like:
>
> if ( ThisIsMono() )
> DoMonoCode()
> else
> DoNormalCode()
>
> What I'm missing is ThisIsMono - is there any way to detect whether
> the
> application is being run by Mono, without having to import any Mono-
> related
> library?
http://www.mono-project.com/FAQ:_Technical#How_can_I_detect_if_am_running_in_Mono.3F
HTH,
Andreas
More information about the Mono-list
mailing list