2 using System
.Reflection
;
4 static partial class StaticClass
6 public static string Name ()
12 partial class StaticClass2
{}
13 static partial class StaticClass2
{}
16 public class MainClass
18 static bool IsStatic (Type t
)
20 Type type
= typeof (StaticClass
);
21 if (!type
.IsAbstract
|| !type
.IsSealed
) {
22 Console
.WriteLine ("Is not abstract sealed");
26 if (type
.GetConstructors ().Length
> 0) {
27 Console
.WriteLine ("Has constructor");
33 public static int Main ()
35 if (!IsStatic (typeof (StaticClass
)))
38 if (!IsStatic (typeof (StaticClass2
)))
41 Console
.WriteLine ("OK");