Uses properties instead of get/set methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4541 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4abc8f3f5e
commit
1196effefb
1 changed files with 3 additions and 3 deletions
|
|
@ -14,12 +14,12 @@ public class runme
|
|||
// Manipulate the Foo global variable
|
||||
|
||||
// Output its current value
|
||||
Console.WriteLine("Foo = " + example.getFoo());
|
||||
Console.WriteLine("Foo = " + example.Foo);
|
||||
|
||||
// Change its value
|
||||
example.setFoo(3.1415926);
|
||||
example.Foo = 3.1415926;
|
||||
|
||||
// See if the change took effect
|
||||
Console.WriteLine("Foo = " + example.getFoo());
|
||||
Console.WriteLine("Foo = " + example.Foo);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue