netcorehost 0.13.1

A Rust library for hosting the .NET Core runtime.
Documentation
using System;
using System.Runtime.InteropServices;

namespace Test {
    public static class Program {
        public static int Hello(IntPtr arg, int argLength) {
            Console.WriteLine("Hello from C#!");
            return 42;
        }
        public static int Hello2(IntPtr arg, int argLength) {
            Console.WriteLine("Hello again?");
            return 0;
        }

        public delegate void CustomHelloFunc();
        public static void CustomHello() {
            Console.WriteLine("Hello from C#!");
        }

        [UnmanagedCallersOnly]
        public static int UnmanagedHello() {
            return Hello(default, default);
        }

        public static int Main() => Hello(default, default);
    } 
}