/trunk/Examples/test-suite/csharp/default_constructor_runme.cs
# · C# · 24 lines · 20 code · 2 blank · 2 comment · 0 complexity · 1705081c50191e2f9cb632d77ae4914d MD5 · raw file
- 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) {
- }
- }
- }