using System; // Build as a .NET Framework class library named DotNetFunctionDemo.dll. // Keep the exported surface static and limited to simple numeric types. public static class DotNetFunctions { public static int Add(int left, int right) { checked { return left + right; } } public static double Scale(double value, double factor) { return value * factor; } }