/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

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