2 // XmlElementAttributes.cs:
5 // John Donagher (john@webmeta.com)
7 // (C) 2002 John Donagher
10 using System.Collections;
\r
13 namespace System.Xml.Serialization
\r
16 /// Summary description for XmlElementAttributes.
\r
18 public class XmlElementAttributes : CollectionBase
\r
20 public XmlElementAttribute this [int index] {
\r
22 return (XmlElementAttribute)List [index];
\r
25 List [index] = value;
\r
29 public int Add (XmlElementAttribute attribute)
\r
31 return List.Add (attribute);
\r
34 public bool Contains(XmlElementAttribute attribute)
\r
36 return List.Contains(attribute);
\r
39 public int IndexOf(XmlElementAttribute attribute)
\r
41 return List.IndexOf(attribute);
\r
44 public void Insert(int index, XmlElementAttribute attribute)
\r
46 List.Insert(index, attribute);
\r
49 public void Remove(XmlElementAttribute attribute)
\r
51 List.Remove(attribute);
\r
54 public void CopyTo(XmlElementAttribute[] array,int index)
\r
56 List.CopyTo(array, index);
\r
59 internal bool InternalEquals (XmlElementAttributes other)
\r
61 if (other == null) return false;
\r
63 if (Count != other.Count) return false;
\r
64 for (int n=0; n<Count; n++)
\r
65 if (!this[n].InternalEquals (other[n])) return false;
\r