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