PageRenderTime 47ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. using System;
  2. public class runme
  3. {
  4. static void Main()
  5. {
  6. // Call our gcd() function
  7. int x = 42;
  8. int y = 105;
  9. int g = example.gcd(x,y);
  10. Console.WriteLine("The gcd of " + x + " and " + y + " is " + g);
  11. // Manipulate the Foo global variable
  12. // Output its current value
  13. Console.WriteLine("Foo = " + example.Foo);
  14. // Change its value
  15. example.Foo = 3.1415926;
  16. // See if the change took effect
  17. Console.WriteLine("Foo = " + example.Foo);
  18. }
  19. }