blob: 9fc8d754bd98649bf63f77b62e2cb019c35295f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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) {
}
}
}
|