AppMetrics.Client.Tracker.GetMonoRuntimeVersion C# (CSharp) Method

GetMonoRuntimeVersion() static private method

static private GetMonoRuntimeVersion ( ) : string
return string
        static string GetMonoRuntimeVersion()
        {
            var type = Type.GetType("Mono.Runtime");
            if (type != null)
            {
                MethodInfo displayName = type.GetMethod("GetDisplayName", BindingFlags.NonPublic | BindingFlags.Static);
                if (displayName != null)
                    return (string)(displayName.Invoke(null, null));
            }
            return "";
        }