[Mono-dev] how to get the runtime environment?

Kornél Pál kornelpal at gmail.com
Sat Feb 17 12:00:16 EST 2007

>> in runtime I need know if the framework is mono o microsoft. For example: 
>> if
>> I run "mono myapp.exe" the app needs know that is running on mono and not 
>> on
>> Microsoft.
> You can use this :
> bool isMono = (Type.GetType("System.MonoType") != null) ? true : false;
> But maybe there is a better solution I don't know.

The above is quite good, if you need some more information you should check 
these out as well:


More information about the Mono-devel-list mailing list