Created
March 4, 2016 15:40
-
-
Save olange/484ad32accb4efc3c825 to your computer and use it in GitHub Desktop.
Reading Mono Runtime version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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