Beispiel #1
0
 // Should not reference DllImport class directly (breaks Mono compatibility)
 // Calling this method will fail if it is the first call made
 public static double AvgV3(int a, int b) => Imports.Avg(a, b);
Beispiel #2
0
 static void Main(string[] args)
 {
     Console.WriteLine("Basic Sample. Only contains x86 & x64 Windows versions of the sample lib. May not work with Mono(see sample 2 for workaround)");
     Console.WriteLine("Calling test function: Avg ({0}, {1}) = {2},   ptrSize()= {3}", 2, 3, Imports.Avg(2, 3), Imports.ptrSize() * 8);
 }
Beispiel #3
0
 public double Avg(int a, int b) => Imports.Avg(a, b);