Merge pull request #1275 from ranma42/fix-lib64
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / XmlAnyElementAttributes.cs
index eff93a0eb9ac2bd1d53ceefb05d74ca3c8eb7c9a..5b1d349548564825319c0b82c8f72880acb5a1b6 100644 (file)
@@ -36,84 +36,9 @@ namespace System.Xml.Serialization
        /// <summary>
        /// Summary description for XmlAnyElementAttributes.
        /// </summary>
-#if MOONLIGHT
-       public class XmlAnyElementAttributes : IList {
 
-               private List<XmlAnyElementAttribute> List = new List<XmlAnyElementAttribute> ();
-
-               int IList.Add (object value)
-               {
-                       return (List as IList).Add (value);
-               }
-
-               void IList.Clear ()
-               {
-                       List.Clear ();
-               }
-
-               bool IList.Contains (object value)
-               {
-                       return (List as IList).Contains (value);
-               }
-
-               int IList.IndexOf (object value)
-               {
-                       return (List as IList).IndexOf (value);
-               }
-
-               void IList.Insert (int index, object value)
-               {
-                       (List as IList).Insert (index, value);
-               }
-
-               bool IList.IsFixedSize {
-                       get { return (List as IList).IsFixedSize; }
-               }
-
-               bool IList.IsReadOnly {
-                       get { return (List as IList).IsReadOnly; }
-               }
-
-               void IList.Remove (object value)
-               {
-                       (List as IList).Remove (value);
-               }
-
-               void IList.RemoveAt (int index)
-               {
-                       List.RemoveAt (index);
-               }
-
-               object IList.this [int index] {
-                       get { return (List as IList) [index]; }
-                       set { (List as IList) [index] = value; }
-               }
-
-               void ICollection.CopyTo (Array array, int index)
-               {
-                       (List as ICollection).CopyTo (array, index);
-               }
-
-               public int Count {
-                       get { return List.Count; }
-               }
-
-               bool ICollection.IsSynchronized {
-                       get { return (List as ICollection).IsSynchronized; }
-               }
-
-               object ICollection.SyncRoot {
-                       get { return (List as ICollection).SyncRoot; }
-               }
-
-               IEnumerator IEnumerable.GetEnumerator ()
-               {
-                       return (List as IEnumerable).GetEnumerator ();
-               }
-#else
        public class XmlAnyElementAttributes : CollectionBase {
-#endif
-               
+
                public XmlAnyElementAttribute this[int index] 
                {
                        get