diff --git a/EduNetworkBuilder/NB.cs b/EduNetworkBuilder/NB.cs index 7a8c9b2..921dff8 100644 --- a/EduNetworkBuilder/NB.cs +++ b/EduNetworkBuilder/NB.cs @@ -358,6 +358,15 @@ namespace EduNetworkBuilder return myresource; } + /// + /// Determine if we are using Mono or .Net. Some things get killed using Mono. + /// + /// True if we are using Mono + public static bool IsRunningOnMono() + { + return Type.GetType("Mono.Runtime") != null; + } + public static Point GetSnapped(Point Location) { int x = (Location.X / NB.GridSize) * NB.GridSize;