| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- //
- // XmlElementAttributes.cs:
- //
- // Author:
- // John Donagher ([email protected])
- //
- // (C) 2002 John Donagher
- //
- using System.Collections;
- using System;
- namespace System.Xml.Serialization
- {
- /// <summary>
- /// Summary description for XmlElementAttributes.
- /// </summary>
- public class XmlElementAttributes : CollectionBase
- {
- public XmlElementAttribute this [int index] {
- get {
- return (XmlElementAttribute)List [index];
- }
- set {
- List [index] = value;
- }
- }
- public int Add (XmlElementAttribute attribute)
- {
- return List.Add (attribute);
- }
- public bool Contains(XmlElementAttribute attribute)
- {
- return List.Contains(attribute);
- }
- public int IndexOf(XmlElementAttribute attribute)
- {
- return List.IndexOf(attribute);
- }
- public void Insert(int index, XmlElementAttribute attribute)
- {
- List.Insert(index, attribute);
- }
- public void Remove(XmlElementAttribute attribute)
- {
- List.Remove(attribute);
- }
- public void CopyTo(XmlElementAttribute[] array,int index)
- {
- List.CopyTo(array, index);
- }
-
- internal void AddKeyHash (System.Text.StringBuilder sb)
- {
- if (Count == 0) return;
-
- sb.Append ("XEAS ");
- for (int n=0; n<Count; n++)
- this[n].AddKeyHash (sb);
- sb.Append ('|');
- }
- }
- }
|