1 // Author: Dwivedi, Ajay kumar
\r
4 using System.Collections;
\r
6 namespace System.Xml.Schema
\r
9 /// Summary description for XmlSchemaObjectCollection.
\r
11 public class XmlSchemaObjectCollection : System.Collections.CollectionBase
\r
13 public XmlSchemaObjectCollection()
\r
17 public XmlSchemaObjectCollection(XmlSchemaObject parent)
\r
22 public virtual XmlSchemaObject this[ int index ]
\r
26 return (XmlSchemaObject) this.List[index];
\r
30 this.List[index] = value;
\r
35 public int Add(System.Xml.Schema.XmlSchemaObject item)
\r
37 return this.List.Add(item);
\r
40 public bool Contains(System.Xml.Schema.XmlSchemaObject item)
\r
42 return this.List.Contains(item);
\r
45 public void CopyTo(System.Xml.Schema.XmlSchemaObject[] array, int index)
\r
47 this.List.CopyTo(array,index);
\r
51 public new XmlSchemaObjectEnumerator GetEnumerator()
\r
53 return (XmlSchemaObjectEnumerator) new object();
\r
56 public int IndexOf(System.Xml.Schema.XmlSchemaObject item)
\r
58 return this.List.IndexOf(item);
\r
61 public void Insert(int index, System.Xml.Schema.XmlSchemaObject item)
\r
63 this.List.Insert(index, item);
\r
67 protected override void OnClear(){}
\r
69 protected override void OnInsert(int index,object item){}
\r
71 protected override void OnRemove(int index,object item){}
\r
73 protected override void OnSet(int index,object oldValue,object newValue){}
\r
75 public void Remove(System.Xml.Schema.XmlSchemaObject item)
\r
77 this.List.Remove(item);
\r