comparison 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
comparison
equal deleted inserted replaced
38:8ab98a803d39 39:7645122aa7a9
129 129
130 return true; 130 return true;
131 } 131 }
132 return false; 132 return false;
133 } 133 }
134
135 /// <summary>Returns whether the program is running on Mono.</summary>
136 /// <returns>True if the program is running on Mono.</returns>
137 public static bool IsMono()
138 {
139 return Type.GetType("Mono.Runtime") != null;
140 }
134 } 141 }
135 } 142 }