ServiceDescriptionFormatExtensionCollection.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. //
  2. // System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.Web.Services;
  10. using System.Xml;
  11. namespace System.Web.Services.Description {
  12. public sealed class ServiceDescriptionFormatExtensionCollection : ServiceDescriptionBaseCollection {
  13. #region Fields
  14. object parent;
  15. #endregion // Fields
  16. #region Constructors
  17. public ServiceDescriptionFormatExtensionCollection (object parent)
  18. {
  19. this.parent = parent;
  20. }
  21. #endregion // Constructors
  22. #region Properties
  23. public object this [int index] {
  24. get {
  25. if (index < 0 || index > Count)
  26. throw new ArgumentOutOfRangeException ();
  27. return List[index];
  28. }
  29. set { List[index] = value; }
  30. }
  31. #endregion // Properties
  32. #region Methods
  33. public int Add (object extension)
  34. {
  35. Insert (Count, extension);
  36. return (Count - 1);
  37. }
  38. public bool Contains (object extension)
  39. {
  40. return List.Contains (extension);
  41. }
  42. public void CopyTo (object[] array, int index)
  43. {
  44. List.CopyTo (array, index);
  45. }
  46. [MonoTODO]
  47. public object Find (Type type)
  48. {
  49. throw new NotImplementedException ();
  50. }
  51. [MonoTODO]
  52. public XmlElement Find (string name, string ns)
  53. {
  54. throw new NotImplementedException ();
  55. }
  56. [MonoTODO]
  57. public object[] FindAll (Type type)
  58. {
  59. throw new NotImplementedException ();
  60. }
  61. [MonoTODO]
  62. public XmlElement[] FindAll (string name, string ns)
  63. {
  64. throw new NotImplementedException ();
  65. }
  66. public int IndexOf (object extension)
  67. {
  68. return List.IndexOf (extension);
  69. }
  70. public void Insert (int index, object extension)
  71. {
  72. SetParent (extension, parent);
  73. List.Insert (index, extension);
  74. }
  75. [MonoTODO]
  76. public bool IsHandled (object item)
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. [MonoTODO]
  81. public bool IsRequired (object item)
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. [MonoTODO]
  86. protected override void OnValidate (object value)
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. public void Remove (object extension)
  91. {
  92. List.Remove (extension);
  93. }
  94. protected override void SetParent (object value, object parent)
  95. {
  96. ((ServiceDescriptionFormatExtension) value).SetParent (parent);
  97. }
  98. #endregion // Methods
  99. }
  100. }