[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / test-xml-054.cs
blobeb65a629fd5b071299a034a8acaf674b00d2421f
1 // Compiler options: -doc:xml-054.xml
2 using System;
3 using System.Collections;
4 using System.Collections.Generic;
6 public class A {
7 public interface I {
8 void Foo ();
9 void Bar<T>(T value);
13 /// <summary>Container`2</summary>
14 public class Container<TKey, TValue> : IList<TValue>, A.I {
16 /// <summary>Container`2.#ctor</summary>
17 public Container ()
21 /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#Count</summary>
22 int ICollection<TValue>.Count {get {return 0;}}
24 /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#IsReadOnly</summary>
25 bool ICollection<TValue>.IsReadOnly {get {return true;}}
27 /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#Add(`1)</summary>
28 void ICollection<TValue>.Add (TValue value) {}
30 /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#Remove(`1)</summary>
31 bool ICollection<TValue>.Remove (TValue value) {return false;}
33 /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#Clear</summary>
34 void ICollection<TValue>.Clear () {}
36 /// <summary>Container`2.System#Collections#Generic#ICollection&lt;TValue&gt;#Contains(`1)</summary>
37 bool ICollection<TValue>.Contains (TValue value) {return false;}
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) {}
42 /// <summary>Container`2.System#Collections#Generic#IList&lt;TValue&gt;#IndexOf(`1)</summary>
43 int IList<TValue>.IndexOf (TValue value) {return -1;}
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) {}
48 /// <summary>Container`2.System#Collections#Generic#IList&lt;TValue&gt;#RemoveAt(System.Int32)</summary>
49 void IList<TValue>.RemoveAt (int index) {}
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 {}
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 ()
66 yield break;
69 /// <summary>Container`2.A#I#Foo</summary>
70 void A.I.Foo ()
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 ()
85 return Clone ();
88 /// <summary>Container`2.Element.Clone</summary>
89 public Element Clone ()
91 return (Element) MemberwiseClone ();
96 class Test {
97 public static void Main ()