swig/Examples/test-suite/csharp/default_constructor_runme.cs
William S Fulton c80194ff80 Minor warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5066 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-02 16:03:52 +00:00

23 lines
579 B
C#

using System;
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) {
}
}
}