swig/Examples/csharp/simple/runme.cs
William S Fulton 719959886d csharp examples
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4433 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-04 22:49:38 +00:00

23 lines
545 B
C#

public class runme
{
static void Main()
{
// Call our gcd() function
int x = 42;
int y = 105;
int g = example.gcd(x,y);
Console.WriteLine("The gcd of " + x + " and " + y + " is " + g);
// Manipulate the Foo global variable
// Output its current value
Console.WriteLine("Foo = " + example.getFoo());
// Change its value
example.setFoo(3.1415926);
// See if the change took effect
Console.WriteLine("Foo = " + example.getFoo());
}
}