XmlArrayItemAttributes.cs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlArrayItemAttributes.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">Microsoft</owner>
  6. //------------------------------------------------------------------------------
  7. namespace System.Xml.Serialization {
  8. using System;
  9. using System.Reflection;
  10. using System.Collections;
  11. using System.ComponentModel;
  12. /// <include file='doc\XmlArrayItemAttributes.uex' path='docs/doc[@for="XmlArrayItemAttributes"]/*' />
  13. /// <devdoc>
  14. /// <para>[To be supplied.]</para>
  15. /// </devdoc>
  16. public class XmlArrayItemAttributes : CollectionBase {
  17. /// <include file='doc\XmlArrayItemAttributes.uex' path='docs/doc[@for="XmlArrayItemAttributes.this"]/*' />
  18. /// <devdoc>
  19. /// <para>[To be supplied.]</para>
  20. /// </devdoc>
  21. public XmlArrayItemAttribute this[int index] {
  22. get { return (XmlArrayItemAttribute)List[index]; }
  23. set { List[index] = value; }
  24. }
  25. /// <include file='doc\XmlArrayItemAttributes.uex' path='docs/doc[@for="XmlArrayItemAttributes.Add"]/*' />
  26. /// <devdoc>
  27. /// <para>[To be supplied.]</para>
  28. /// </devdoc>
  29. public int Add(XmlArrayItemAttribute attribute) {
  30. return List.Add(attribute);
  31. }
  32. /// <include file='doc\XmlArrayItemAttributes.uex' path='docs/doc[@for="XmlArrayItemAttributes.Insert"]/*' />
  33. /// <devdoc>
  34. /// <para>[To be supplied.]</para>
  35. /// </devdoc>
  36. public void Insert(int index, XmlArrayItemAttribute attribute) {
  37. List.Insert(index, attribute);
  38. }
  39. /// <include file='doc\XmlArrayItemAttributes.uex' path='docs/doc[@for="XmlArrayItemAttributes.IndexOf"]/*' />
  40. /// <devdoc>
  41. /// <para>[To be supplied.]</para>
  42. /// </devdoc>
  43. public int IndexOf(XmlArrayItemAttribute attribute) {
  44. return List.IndexOf(attribute);
  45. }
  46. /// <include file='doc\XmlArrayItemAttributes.uex' path='docs/doc[@for="XmlArrayItemAttributes.Contains"]/*' />
  47. /// <devdoc>
  48. /// <para>[To be supplied.]</para>
  49. /// </devdoc>
  50. public bool Contains(XmlArrayItemAttribute attribute) {
  51. return List.Contains(attribute);
  52. }
  53. /// <include file='doc\XmlArrayItemAttributes.uex' path='docs/doc[@for="XmlArrayItemAttributes.Remove"]/*' />
  54. /// <devdoc>
  55. /// <para>[To be supplied.]</para>
  56. /// </devdoc>
  57. public void Remove(XmlArrayItemAttribute attribute) {
  58. List.Remove(attribute);
  59. }
  60. /// <include file='doc\XmlArrayItemAttributes.uex' path='docs/doc[@for="XmlArrayItemAttributes.CopyTo"]/*' />
  61. /// <devdoc>
  62. /// <para>[To be supplied.]</para>
  63. /// </devdoc>
  64. public void CopyTo(XmlArrayItemAttribute[] array, int index) {
  65. List.CopyTo(array, index);
  66. }
  67. }
  68. }