Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-xml-054.cs
1 // Compiler options: -doc:xml-054.xml
2 using System;
3 using System.Collections;
4 using System.Collections.Generic;
5
6 public class A {
7         public interface I {
8                 void Foo ();
9                 void Bar<T>(T value);
10         }
11 }
12
13 /// <summary>Container`2</summary>
14 public class Container<TKey, TValue> : IList<TValue>, A.I {
15
16         /// <summary>Container`2.#ctor</summary>
17         public Container ()
18         {
19         }
20
21         /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#Count</summary>
22         int ICollection<TValue>.Count {get {return 0;}}
23
24         /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#IsReadOnly</summary>
25         bool ICollection<TValue>.IsReadOnly {get {return true;}}
26
27         /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#Add(`1)</summary>
28         void ICollection<TValue>.Add (TValue value) {}
29
30         /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#Remove(`1)</summary>
31         bool ICollection<TValue>.Remove (TValue value) {return false;}
32
33         /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#Clear</summary>
34         void ICollection<TValue>.Clear () {}
35
36         /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#Contains(`1)</summary>
37         bool ICollection<TValue>.Contains (TValue value) {return false;}
38
39         /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#CopyTo(`1[],System.Int32)</summary>
40         void ICollection<TValue>.CopyTo (TValue[] array, int arrayIndex) {}
41
42         /// <summary>Container`2.System#Collections#Generic#IList&lt;TValue&gt;#IndexOf(`1)</summary>
43         int IList<TValue>.IndexOf (TValue value) {return -1;}
44
45         /// <summary>Container`2.System#Collections#Generic#IList&lt;TValue&gt;#IndexOf(System.Int32,`1)</summary>
46         void IList<TValue>.Insert (int index, TValue item) {}
47
48         /// <summary>Container`2.System#Collections#Generic#IList&lt;TValue&gt;#RemoveAt(System.Int32)</summary>
49         void IList<TValue>.RemoveAt (int index) {}
50
51         /// <summary>Container`2.System#Collections#Generic#IList&lt;TValue&gt;#Item(System.Int32)</summary>
52         TValue IList<TValue>.this [int index] {
53                 get {return default (TValue);}
54                 set {}
55         }
56
57         /// <summary>Container`2.System#Collections#IEnumerable#GetEnumerator</summary>
58         IEnumerator IEnumerable.GetEnumerator ()
59         {
60                 return GetEnumerator ();
61         }
62
63         /// <summary>Container`2.GetEnumerator</summary>
64         public IEnumerator<TValue> GetEnumerator ()
65         {
66                 yield break;
67         }
68
69         /// <summary>Container`2.A#I#Foo</summary>
70         void A.I.Foo ()
71         {
72         }
73
74         /// <summary>Container`2.A#I#Bar``1(``0)</summary>
75         void A.I.Bar<T> (T value)
76         {
77         }
78
79         /// <summary>Container`2.Element</summary>
80         public class Element : ICloneable {
81
82                 /// <summary>Container`2.Element.System#ICloneable#Clone</summary>
83                 object ICloneable.Clone ()
84                 {
85                         return Clone ();
86                 }
87
88                 /// <summary>Container`2.Element.Clone</summary>
89                 public Element Clone ()
90                 {
91                         return (Element) MemberwiseClone ();
92                 }
93         }
94 }
95
96 class Test {
97         public static void Main ()
98         {
99         }
100 }
101