PageRenderTime 41ms CodeModel.GetById 38ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1using System;
 2
 3namespace LinFu.Reflection
 4{
 5    /// <summary>
 6    ///     Adds helper methods that return information about the current
 7    ///     runtime.
 8    /// </summary>
 9    public sealed class Runtime
10    {
11        /// <summary>
12        ///     Gets a value indicating if the application is
13        ///     currently running on the Mono platform.
14        /// </summary>
15        public static bool IsRunningOnMono => Type.GetType("Mono.Runtime", false) != null;
16    }
17}