/src/LinFu.Reflection/Runtime.cs
http://github.com/philiplaureano/LinFu · C# · 17 lines · 8 code · 1 blank · 8 comment · 1 complexity · b6d54403d4bea2a5980e54c4e0753eb6 MD5 · raw file
- using System;
- namespace LinFu.Reflection
- {
- /// <summary>
- /// Adds helper methods that return information about the current
- /// runtime.
- /// </summary>
- public sealed class Runtime
- {
- /// <summary>
- /// Gets a value indicating if the application is
- /// currently running on the Mono platform.
- /// </summary>
- public static bool IsRunningOnMono => Type.GetType("Mono.Runtime", false) != null;
- }
- }