/tags/rel-1-3-25/SWIG/Examples/csharp/simple/runme.cs
C# | 25 lines | 14 code | 6 blank | 5 comment | 0 complexity | d60f5e64f08cce285add788e230c7764 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1using System; 2 3public class runme 4{ 5 static void Main() 6 { 7 // Call our gcd() function 8 9 int x = 42; 10 int y = 105; 11 int g = example.gcd(x,y); 12 Console.WriteLine("The gcd of " + x + " and " + y + " is " + g); 13 14 // Manipulate the Foo global variable 15 16 // Output its current value 17 Console.WriteLine("Foo = " + example.Foo); 18 19 // Change its value 20 example.Foo = 3.1415926; 21 22 // See if the change took effect 23 Console.WriteLine("Foo = " + example.Foo); 24 } 25}