fork download
  1. Imports System
  2. Imports System.Reflection
  3. public class compiler
  4. shared function Main as integer
  5.  
  6. dim d As MethodInfo
  7. dim tp As Type = Type.GetType("Mono.Runtime")
  8. if not tp is nothing then
  9. d = tp.GetMethod("GetDisplayName", BindingFlags.NonPublic or BindingFlags.Static)
  10. if not d is nothing then
  11. Console.WriteLine(d.Invoke(nothing, nothing))
  12. End if
  13. end if
  14.  
  15. return 0
  16. End function
  17. end class
  18.  
Success #stdin #stdout 0.03s 24192KB
stdin
参考
http://stackoverflow.com/questions/4178129/how-to-determine-the-revision-from-which-current-mono-runtime-was-built-and-inst
stdout
3.2.8 (Debian 3.2.8+dfsg-9)