[Mono-dev] how to get the runtime environment?
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:
> 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
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