swig/Examples/test-suite/csharp/default_constructor_runme.cs
2004-02-24 21:06:54 +00:00

24 lines
615 B
C#

using System;
using default_constructorNamespace;
public class runme
{
static void Main()
{
// calling protected destructor test
try {
using (G g = new G()) {
}
throw new Exception("Protected destructor exception should have been thrown");
} catch (MethodAccessException) {
}
// calling private destructor test
try {
using (FFF f = new FFF()) {
}
throw new Exception("Private destructor exception should have been thrown");
} catch (MethodAccessException) {
}
}
}