XmlElementAttributes.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlElementAttributes.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\XmlElementAttributes.uex' path='docs/doc[@for="XmlElementAttributes"]/*' />
  13. /// <devdoc>
  14. /// <para>[To be supplied.]</para>
  15. /// </devdoc>
  16. public class XmlElementAttributes : CollectionBase {
  17. /// <include file='doc\XmlElementAttributes.uex' path='docs/doc[@for="XmlElementAttributes.this"]/*' />
  18. /// <devdoc>
  19. /// <para>[To be supplied.]</para>
  20. /// </devdoc>
  21. public XmlElementAttribute this[int index] {
  22. get { return (XmlElementAttribute)List[index]; }
  23. set { List[index] = value; }
  24. }
  25. /// <include file='doc\XmlElementAttributes.uex' path='docs/doc[@for="XmlElementAttributes.Add"]/*' />
  26. /// <devdoc>
  27. /// <para>[To be supplied.]</para>
  28. /// </devdoc>
  29. public int Add(XmlElementAttribute attribute) {
  30. return List.Add(attribute);
  31. }
  32. /// <include file='doc\XmlElementAttributes.uex' path='docs/doc[@for="XmlElementAttributes.Insert"]/*' />
  33. /// <devdoc>
  34. /// <para>[To be supplied.]</para>
  35. /// </devdoc>
  36. public void Insert(int index, XmlElementAttribute attribute) {
  37. List.Insert(index, attribute);
  38. }
  39. /// <include file='doc\XmlElementAttributes.uex' path='docs/doc[@for="XmlElementAttributes.IndexOf"]/*' />
  40. /// <devdoc>
  41. /// <para>[To be supplied.]</para>
  42. /// </devdoc>
  43. public int IndexOf(XmlElementAttribute attribute) {
  44. return List.IndexOf(attribute);
  45. }
  46. /// <include file='doc\XmlElementAttributes.uex' path='docs/doc[@for="XmlElementAttributes.Contains"]/*' />
  47. /// <devdoc>
  48. /// <para>[To be supplied.]</para>
  49. /// </devdoc>
  50. public bool Contains(XmlElementAttribute attribute) {
  51. return List.Contains(attribute);
  52. }
  53. /// <include file='doc\XmlElementAttributes.uex' path='docs/doc[@for="XmlElementAttributes.Remove"]/*' />
  54. /// <devdoc>
  55. /// <para>[To be supplied.]</para>
  56. /// </devdoc>
  57. public void Remove(XmlElementAttribute attribute) {
  58. List.Remove(attribute);
  59. }
  60. /// <include file='doc\XmlElementAttributes.uex' path='docs/doc[@for="XmlElementAttributes.CopyTo"]/*' />
  61. /// <devdoc>
  62. /// <para>[To be supplied.]</para>
  63. /// </devdoc>
  64. public void CopyTo(XmlElementAttribute[] array, int index) {
  65. List.CopyTo(array, index);
  66. }
  67. }
  68. }