-using System;\r
-using System.Reflection;\r
-\r
-static partial class StaticClass\r
-{\r
- public static string Name ()\r
- {\r
- return "OK";\r
- }\r
-}\r
-\r
-partial class StaticClass2 {}\r
-static partial class StaticClass2 {}\r
-\r
- \r
-public class MainClass\r
-{\r
- static bool IsStatic (Type t)\r
- {\r
- Type type = typeof (StaticClass);\r
- if (!type.IsAbstract || !type.IsSealed) {\r
- Console.WriteLine ("Is not abstract sealed");\r
- return false;\r
- }\r
- \r
- if (type.GetConstructors ().Length > 0) {\r
- Console.WriteLine ("Has constructor");\r
- return false;\r
- }\r
- return true;\r
- }\r
-\r
- public static int Main ()\r
- {\r
- if (!IsStatic (typeof (StaticClass)))\r
- return 1;\r
-\r
- if (!IsStatic (typeof (StaticClass2)))\r
- return 2;\r
- \r
- Console.WriteLine ("OK");\r
- return 0;\r
- }\r
+using System;
+using System.Reflection;
+
+static partial class StaticClass
+{
+ public static string Name ()
+ {
+ return "OK";
+ }
+}
+
+partial class StaticClass2 {}
+static partial class StaticClass2 {}
+
+
+public class MainClass
+{
+ static bool IsStatic (Type t)
+ {
+ Type type = typeof (StaticClass);
+ if (!type.IsAbstract || !type.IsSealed) {
+ Console.WriteLine ("Is not abstract sealed");
+ return false;
+ }
+
+ if (type.GetConstructors ().Length > 0) {
+ Console.WriteLine ("Has constructor");
+ return false;
+ }
+ return true;
+ }
+
+ public static int Main ()
+ {
+ if (!IsStatic (typeof (StaticClass)))
+ return 1;
+
+ if (!IsStatic (typeof (StaticClass2)))
+ return 2;
+
+ Console.WriteLine ("OK");
+ return 0;
+ }
}
\ No newline at end of file