1 // Compiler options: -doc:xml-054.xml
3 using System.Collections;
4 using System.Collections.Generic;
13 /// <summary>Container`2</summary>
14 public class Container<TKey, TValue> : IList<TValue>, A.I {
16 /// <summary>Container`2.#ctor</summary>
21 /// <summary>Container`2.System#Collections#Generic#ICollection<TValue>#Count</summary>
22 int ICollection<TValue>.Count {get {return 0;}}
24 /// <summary>Container`2.System#Collections#Generic#ICollection<TValue>#IsReadOnly</summary>
25 bool ICollection<TValue>.IsReadOnly {get {return true;}}
27 /// <summary>Container`2.System#Collections#Generic#ICollection<TValue>#Add(`1)</summary>
28 void ICollection<TValue>.Add (TValue value) {}
30 /// <summary>Container`2.System#Collections#Generic#ICollection<TValue>#Remove(`1)</summary>
31 bool ICollection<TValue>.Remove (TValue value) {return false;}
33 /// <summary>Container`2.System#Collections#Generic#ICollection<TValue>#Clear</summary>
34 void ICollection<TValue>.Clear () {}
36 /// <summary>Container`2.System#Collections#Generic#ICollection<TValue>#Contains(`1)</summary>
37 bool ICollection<TValue>.Contains (TValue value) {return false;}
39 /// <summary>Container`2.System#Collections#Generic#ICollection<TValue>#CopyTo(`1[],System.Int32)</summary>
40 void ICollection<TValue>.CopyTo (TValue[] array, int arrayIndex) {}
42 /// <summary>Container`2.System#Collections#Generic#IList<TValue>#IndexOf(`1)</summary>
43 int IList<TValue>.IndexOf (TValue value) {return -1;}
45 /// <summary>Container`2.System#Collections#Generic#IList<TValue>#IndexOf(System.Int32,`1)</summary>
46 void IList<TValue>.Insert (int index, TValue item) {}
48 /// <summary>Container`2.System#Collections#Generic#IList<TValue>#RemoveAt(System.Int32)</summary>
49 void IList<TValue>.RemoveAt (int index) {}
51 /// <summary>Container`2.System#Collections#Generic#IList<TValue>#Item(System.Int32)</summary>
52 TValue IList<TValue>.this [int index] {
53 get {return default (TValue);}
57 /// <summary>Container`2.System#Collections#IEnumerable#GetEnumerator</summary>
58 IEnumerator IEnumerable.GetEnumerator ()
60 return GetEnumerator ();
63 /// <summary>Container`2.GetEnumerator</summary>
64 public IEnumerator<TValue> GetEnumerator ()
69 /// <summary>Container`2.A#I#Foo</summary>
74 /// <summary>Container`2.A#I#Bar``1(``0)</summary>
75 void A.I.Bar<T> (T value)
79 /// <summary>Container`2.Element</summary>
80 public class Element : ICloneable {
82 /// <summary>Container`2.Element.System#ICloneable#Clone</summary>
83 object ICloneable.Clone ()
88 /// <summary>Container`2.Element.Clone</summary>
89 public Element Clone ()
91 return (Element) MemberwiseClone ();
97 public static void Main ()