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

Cedric Vivier cedricv at neonux.com
Sat Feb 17 11:52:04 EST 2007


On 2/17/07, Luis A. Pinzón <Luis.Pinzon at globalpyme.com> wrote:
> Hi,
>
> 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.


More information about the Mono-devel-list mailing list