mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
17 lines
561 B
C#
17 lines
561 B
C#
using System;
|
|
|
|
namespace HelloWorld
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
bool isMono = typeof(object).Assembly.GetType("Mono.RuntimeStructs") != null;
|
|
Console.WriteLine("Hello World " + (isMono ? "from Mono!" : "from CoreCLR!"));
|
|
Console.WriteLine(typeof(object).Assembly.FullName);
|
|
Console.WriteLine(System.Reflection.Assembly.GetEntryAssembly ());
|
|
Console.WriteLine(System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription);
|
|
}
|
|
}
|
|
}
|