[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:
http://lists.ximian.com/pipermail/mono-devel-list/2005-May/012144.html
http://lists.ximian.com/pipermail/mono-list/2005-June/027348.html
Kornél
More information about the Mono-devel-list
mailing list