diff ServerMonitor/Helpers.cs @ 39:7645122aa7a9

Get it working under Mono
author Brad Greco <brad@bgreco.net>
date Tue, 09 Jun 2020 20:59:00 -0400
parents 68d7834dc28e
children
line wrap: on
line diff
--- a/ServerMonitor/Helpers.cs	Sun Sep 15 21:01:14 2019 -0400
+++ b/ServerMonitor/Helpers.cs	Tue Jun 09 20:59:00 2020 -0400
@@ -131,5 +131,12 @@
             }
             return false;
         }
+
+        /// <summary>Returns whether the program is running on Mono.</summary>
+        /// <returns>True if the program is running on Mono.</returns>
+        public static bool IsMono()
+        {
+            return Type.GetType("Mono.Runtime") != null;
+        }
     }
 }