I have imported the nuget package DLLExport to export functions to c/c++.
using RGiesecke.DllExport; namespace ClassLibrary1 { public class Class1 {