private static string GetMonoVersion ()
{
Type type = Type.GetType ("Mono.Runtime");
if (type != null) {
MethodInfo displayName = type.GetMethod ("GetDisplayName", BindingFlags.Public | BindingFlags.Static);
if (displayName != null)
return displayName.Invoke (null, null).ToString ();
}
return "(no version)";
}