static public void InvokeDll()

in csharp/Functions.Client/FunctionsDllClient.cs [18:35]


		static public void InvokeDll(string version)
		{
			string framework = ThisFilename == "netcoreapp3.1" ? "netstandard2.0" : ThisFilename;
			string Location = Path.GetFullPath(Path.Combine(ThisPath, "..", "..", "..", "..", "Functions.Dll", "bin", version,
				"Release"/* ThisConfiguration*/, framework, "FunctionsDll.dll"));

			Assembly AssemblyObject = Assembly.LoadFile(Location);
			Type FunctionsType = AssemblyObject.GetType("Functions.FunctionsDll");
			MethodInfo TestFunction = FunctionsType.GetMethod("TestFunction");

			double x = (double)TestFunction.Invoke(null, new object[] { 1, 2 });
			double x1 = (double)TestFunction.Invoke(null, new object[] { 10, 20 });
			if (Verbose)
			{
				Console.WriteLine($"f(1, 2) = {x}");
				Console.WriteLine($"f(10, 20) = {x1}");
			}
		}