using System;
-interface IList \r
+interface IList
{
int Count ();
}
-interface ICounter \r
+interface ICounter
{
- int Count { set; }\r
+ int Count { set; }
}
-interface IListCounter: IList, ICounter\r
-{\r
-}\r
-\r
-interface IA\r
-{\r
- int Value ();\r
-}\r
-\r
-interface IB : IA\r
-{\r
- new int Value { get; }\r
-}\r
-\r
-interface IC : IB\r
-{\r
- new int Value { get; }\r
-}\r
-\r
-interface IBB : IList, ICounter\r
-{\r
-}\r
-\r
-interface ICC : IBB\r
-{\r
-}\r
-\r
-interface IM1\r
-{\r
- void Add (int arg);\r
-}\r
-\r
-interface IM2 : IM1\r
-{\r
- int Add (int arg, bool now);\r
+interface IListCounter: IList, ICounter
+{
}
-class Test\r
-{\r
- static void Main ()\r
- {\r
- }\r
+interface IA
+{
+ int Value ();
+}
+
+interface IB : IA
+{
+ new int Value { get; }
+}
+
+interface IC : IB
+{
+ new int Value { get; }
+}
+
+interface IBB : IList, ICounter
+{
+}
+
+interface ICC : IBB
+{
+}
+
+interface IM1
+{
+ void Add (int arg);
+}
+
+interface IM2 : IM1
+{
+ int Add (int arg, bool now);
+}
+
+class Test
+{
+ public static void Main ()
+ {
+ }
static void Foo (IListCounter t)
{
t.Count ();
- }\r
- \r
- void Foo2 (IC b)\r
- {\r
- int i = b.Value;\r
- }\r
- \r
- void Foo3 (ICC c)\r
- {\r
- c.Count ();\r
- }\r
- \r
- void Foo4 (IM2 im2)\r
- {\r
- im2.Add (2);\r
+ }
+
+ void Foo2 (IC b)
+ {
+ int i = b.Value;
+ }
+
+ void Foo3 (ICC c)
+ {
+ c.Count ();
+ }
+
+ void Foo4 (IM2 im2)
+ {
+ im2.Add (2);
}
}
\ No newline at end of file