2 using System.Reflection;
4 static class StaticClass
11 public static string Name ()
17 public class MainClass
19 public static int Main ()
21 Type type = typeof (StaticClass);
22 if (!type.IsAbstract || !type.IsSealed) {
23 Console.WriteLine ("Is not abstract sealed");
27 if (type.GetConstructors ().Length > 0) {
28 Console.WriteLine ("Has constructor");
32 Console.WriteLine (StaticClass.Name ());