Skip to content

Instantly share code, notes, and snippets.

@olange
Created March 4, 2016 15:40
Show Gist options
  • Save olange/484ad32accb4efc3c825 to your computer and use it in GitHub Desktop.
Save olange/484ad32accb4efc3c825 to your computer and use it in GitHub Desktop.
Reading Mono Runtime version
using System.Reflection;
System.Type type = System.Type.GetType( "Mono.Runtime");
if( type != null) {
MethodInfo displayName = type.GetMethod( "GetDisplayName", BindingFlags.NonPublic|BindingFlags.Static);
if( displayName != null)
Debug.Log( "Mono Runtime version" + displayName.Invoke(null,null));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment