Files
2026-04-10 22:50:51 +02:00

69 lines
3.2 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Collections
{
/// <summary>Defines size, enumerators, and synchronization methods for all nongeneric collections.</summary>
// Token: 0x020005B5 RID: 1461
[Token(Token = "0x20005B5")]
[ComVisible(true)]
public interface ICollection : IEnumerable
{
/// <summary>Copies the elements of the <see cref="T:System.Collections.ICollection" /> to an <see cref="T:System.Array" />, starting at a particular <see cref="T:System.Array" /> index.</summary>
/// <param name="array">The one-dimensional <see cref="T:System.Array" /> that is the destination of the elements copied from <see cref="T:System.Collections.ICollection" />. The <see cref="T:System.Array" /> must have zero-based indexing.</param>
/// <param name="index">The zero-based index in <paramref name="array" /> at which copying begins.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is less than zero.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="array" /> is multidimensional.
/// -or-
/// The number of elements in the source <see cref="T:System.Collections.ICollection" /> is greater than the available space from <paramref name="index" /> to the end of the destination <paramref name="array" />.
/// -or-
/// The type of the source <see cref="T:System.Collections.ICollection" /> cannot be cast automatically to the type of the destination <paramref name="array" />.</exception>
// Token: 0x06002C63 RID: 11363
[Token(Token = "0x6002C63")]
[Address(Slot = "0")]
void CopyTo(Array array, int index);
/// <summary>Gets the number of elements contained in the <see cref="T:System.Collections.ICollection" />.</summary>
/// <returns>The number of elements contained in the <see cref="T:System.Collections.ICollection" />.</returns>
// Token: 0x170006A8 RID: 1704
// (get) Token: 0x06002C64 RID: 11364
[Token(Token = "0x170006A8")]
int Count
{
[Token(Token = "0x6002C64")]
[Address(Slot = "1")]
get;
}
/// <summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />.</summary>
/// <returns>An object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />.</returns>
// Token: 0x170006A9 RID: 1705
// (get) Token: 0x06002C65 RID: 11365
[Token(Token = "0x170006A9")]
object SyncRoot
{
[Token(Token = "0x6002C65")]
[Address(Slot = "2")]
get;
}
/// <summary>Gets a value indicating whether access to the <see cref="T:System.Collections.ICollection" /> is synchronized (thread safe).</summary>
/// <returns>
/// <see langword="true" /> if access to the <see cref="T:System.Collections.ICollection" /> is synchronized (thread safe); otherwise, <see langword="false" />.</returns>
// Token: 0x170006AA RID: 1706
// (get) Token: 0x06002C66 RID: 11366
[Token(Token = "0x170006AA")]
bool IsSynchronized
{
[Token(Token = "0x6002C66")]
[Address(Slot = "3")]
get;
}
}
}