private void doTestOne() { // Basic test; create some objects, modify them, then exit CppObject cpp = new CppObject(); CSharpObject cs = new CSharpObject(); cpp.increment(4); cs.increment(5); }
private void doTestTwo() { // Do the same as above, but show off alternative constructors CppObject cpp = new CppObject(10); CSharpObject cs = new CSharpObject(10000); cpp.increment(-5); cs.increment(-5000); // Also show off explicitly running destructor cpp.Dispose(); }