XmlSchemaObjectCollection.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Collections;
  5. namespace System.Xml.Schema
  6. {
  7. /// <summary>
  8. /// Summary description for XmlSchemaObjectCollection.
  9. /// </summary>
  10. public class XmlSchemaObjectCollection : System.Collections.CollectionBase
  11. {
  12. public XmlSchemaObjectCollection()
  13. {
  14. }
  15. [MonoTODO]
  16. public XmlSchemaObjectCollection(XmlSchemaObject parent)
  17. {
  18. }
  19. // Properties
  20. public virtual XmlSchemaObject this[ int index ]
  21. {
  22. get
  23. {
  24. return (XmlSchemaObject) this.List[index];
  25. }
  26. set
  27. {
  28. this.List[index] = value;
  29. }
  30. }
  31. // Methods
  32. public int Add(System.Xml.Schema.XmlSchemaObject item)
  33. {
  34. return this.List.Add(item);
  35. }
  36. public bool Contains(System.Xml.Schema.XmlSchemaObject item)
  37. {
  38. return this.List.Contains(item);
  39. }
  40. public void CopyTo(System.Xml.Schema.XmlSchemaObject[] array, int index)
  41. {
  42. this.List.CopyTo(array,index);
  43. }
  44. [MonoTODO]
  45. public new XmlSchemaObjectEnumerator GetEnumerator()
  46. {
  47. return (XmlSchemaObjectEnumerator) new object();
  48. }
  49. public int IndexOf(System.Xml.Schema.XmlSchemaObject item)
  50. {
  51. return this.List.IndexOf(item);
  52. }
  53. public void Insert(int index, System.Xml.Schema.XmlSchemaObject item)
  54. {
  55. this.List.Insert(index, item);
  56. }
  57. [MonoTODO]
  58. protected override void OnClear(){}
  59. [MonoTODO]
  60. protected override void OnInsert(int index,object item){}
  61. [MonoTODO]
  62. protected override void OnRemove(int index,object item){}
  63. [MonoTODO]
  64. protected override void OnSet(int index,object oldValue,object newValue){}
  65. public void Remove(System.Xml.Schema.XmlSchemaObject item)
  66. {
  67. this.List.Remove(item);
  68. }
  69. }
  70. }