using System; using System.Runtime.InteropServices; namespace System.Collections { /// Defines size, enumerators, and synchronization methods for all nongeneric collections. /// 1 // Token: 0x0200002D RID: 45 [ComVisible(true)] public interface ICollection : IEnumerable { /// Gets the number of elements contained in the . /// The number of elements contained in the . /// 2 // Token: 0x1700001F RID: 31 // (get) Token: 0x0600049E RID: 1182 int Count { get; } /// Gets a value indicating whether access to the is synchronized (thread safe). /// true if access to the is synchronized (thread safe); otherwise, false. /// 2 // Token: 0x17000020 RID: 32 // (get) Token: 0x0600049F RID: 1183 bool IsSynchronized { get; } /// Gets an object that can be used to synchronize access to the . /// An object that can be used to synchronize access to the . /// 2 // Token: 0x17000021 RID: 33 // (get) Token: 0x060004A0 RID: 1184 object SyncRoot { get; } /// Copies the elements of the to an , starting at a particular index. /// The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. /// The zero-based index in at which copying begins. /// /// is null. /// /// is less than zero. /// /// is multidimensional.-or- The number of elements in the source is greater than the available space from to the end of the destination .-or- The type of the source cannot be cast automatically to the type of the destination /// 2 // Token: 0x060004A1 RID: 1185 void CopyTo(Array array, int index); } }