2 // EncryptionProperties.cs - EncryptionProperties implementation for XML Encryption
3 // http://www.w3.org/2001/04/xmlenc#sec-EncryptionProperties
6 // Tim Coleman (tim@timcoleman.com)
8 // Copyright (C) Tim Coleman, 2004
12 using System.Collections;
15 namespace System.Security.Cryptography.Xml {
16 public sealed class EncryptionProperties : IList, ICollection, IEnumerable {
26 public EncryptionProperties ()
28 list = new ArrayList ();
31 #endregion // Constructors
36 get { return list.Count; }
39 public bool IsFixedSize {
40 get { return list.IsFixedSize; }
43 public bool IsReadOnly {
44 get { return list.IsReadOnly; }
47 public bool IsSynchronized {
48 get { return list.IsSynchronized; }
51 object IList.this [int index] {
52 get { return this [index]; }
53 set { this [index] = (EncryptionProperty) value; }
56 public EncryptionProperty this [int index] {
57 get { return (EncryptionProperty) list [index]; }
58 set { list [index] = value; }
61 public object SyncRoot {
62 get { return list.SyncRoot; }
65 #endregion // Properties
69 public int Add (EncryptionProperty value)
71 return list.Add (value);
79 public bool Contains (EncryptionProperty value)
81 return list.Contains (value);
84 public void CopyTo (Array array, int index)
86 list.CopyTo (array, index);
89 public void CopyTo (EncryptionProperty[] array, int index)
91 list.CopyTo (array, index);
94 public IEnumerator GetEnumerator ()
96 return list.GetEnumerator ();
99 bool IList.Contains (object value)
101 return Contains ((EncryptionProperty) value);
104 int IList.Add (object value)
106 return Add ((EncryptionProperty) value);
109 int IList.IndexOf (object value)
111 return IndexOf ((EncryptionProperty) value);
114 void IList.Insert (int index, object value)
116 Insert (index, (EncryptionProperty) value);
119 void IList.Remove (object value)
121 Remove ((EncryptionProperty) value);
124 public int IndexOf (EncryptionProperty value)
126 return list.IndexOf (value);
129 public void Insert (int index, EncryptionProperty value)
131 list.Insert (index, value);
134 public void Remove (EncryptionProperty value)
139 public void RemoveAt (int index)
141 list.RemoveAt (index);
144 #endregion // Methods