fluentsharp / FluentSharp

Fluent API for the .NET Framework (used by the O2 Platform)
63 stars 18 forks source link

Add method to detect mono execution #50

Closed DinisCruz closed 9 years ago

DinisCruz commented 9 years ago

As per http://stackoverflow.com/questions/7077576/how-do-i-tell-my-code-is-running-on-mono and http://www.mono-project.com/docs/gui/winforms/porting-winforms-applications/ this is a good way to detect this:

Type.GetType ("Mono.Runtime").isNotNull ()
DinisCruz commented 9 years ago

Done with https://github.com/o2platform/FluentSharp/commit/fc8d707390ea2aa2dfe8ad89be729d1c67b5f5e8#diff-2