Program.cs 561 B

12345678910111213141516
  1. using System;
  2. namespace HelloWorld
  3. {
  4. class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8. bool isMono = typeof(object).Assembly.GetType("Mono.RuntimeStructs") != null;
  9. Console.WriteLine("Hello World " + (isMono ? "from Mono!" : "from CoreCLR!"));
  10. Console.WriteLine(typeof(object).Assembly.FullName);
  11. Console.WriteLine(System.Reflection.Assembly.GetEntryAssembly ());
  12. Console.WriteLine(System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription);
  13. }
  14. }
  15. }