t/samples/hello_world/csharp/main.cs
raw| 1 | public class main { |
| 2 | |
| 3 | static public void Main() { |
| 4 | HelloWorld hello1 = new HelloWorld(); |
| 5 | HelloWorld hello2 = new HelloWorld(); |
| 6 | |
| 7 | hello1.say(); |
| 8 | hello2.say(); |
| 9 | |
| 10 | // // even if we don't need to destroy these objects explicitly, we call |
| 11 | // // destroy() to make this similar to the C code |
| 12 | hello1.destroy(); |
| 13 | hello2.destroy(); |
| 14 | } |
| 15 | } |