87 lines
4.8 KiB
C#
87 lines
4.8 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Collections.Generic
|
|
{
|
|
/// <summary>Defines methods to manipulate generic collections.</summary>
|
|
/// <typeparam name="T">The type of the elements in the collection.</typeparam>
|
|
// Token: 0x0200062B RID: 1579
|
|
[Token(Token = "0x200062B")]
|
|
[TypeDependency("System.SZArrayHelper")]
|
|
public interface ICollection<T> : IEnumerable<T>, IEnumerable
|
|
{
|
|
/// <summary>Gets the number of elements contained in the <see cref="T:System.Collections.Generic.ICollection`1" />.</summary>
|
|
/// <returns>The number of elements contained in the <see cref="T:System.Collections.Generic.ICollection`1" />.</returns>
|
|
// Token: 0x170007C8 RID: 1992
|
|
// (get) Token: 0x0600310E RID: 12558
|
|
[Token(Token = "0x170007C8")]
|
|
int Count
|
|
{
|
|
[Token(Token = "0x600310E")]
|
|
[Address(Slot = "0")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x170007C9 RID: 1993
|
|
// (get) Token: 0x0600310F RID: 12559
|
|
[Token(Token = "0x170007C9")]
|
|
bool IsReadOnly
|
|
{
|
|
[Token(Token = "0x600310F")]
|
|
[Address(Slot = "1")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Adds an item to the <see cref="T:System.Collections.Generic.ICollection`1" />.</summary>
|
|
/// <param name="item">The object to add to the <see cref="T:System.Collections.Generic.ICollection`1" />.</param>
|
|
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only.</exception>
|
|
// Token: 0x06003110 RID: 12560
|
|
[Token(Token = "0x6003110")]
|
|
[Address(Slot = "2")]
|
|
void Add(T item);
|
|
|
|
/// <summary>Removes all items from the <see cref="T:System.Collections.Generic.ICollection`1" />.</summary>
|
|
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only.</exception>
|
|
// Token: 0x06003111 RID: 12561
|
|
[Token(Token = "0x6003111")]
|
|
[Address(Slot = "3")]
|
|
void Clear();
|
|
|
|
/// <summary>Determines whether the <see cref="T:System.Collections.Generic.ICollection`1" /> contains a specific value.</summary>
|
|
/// <param name="item">The object to locate in the <see cref="T:System.Collections.Generic.ICollection`1" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="item" /> is found in the <see cref="T:System.Collections.Generic.ICollection`1" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06003112 RID: 12562
|
|
[Token(Token = "0x6003112")]
|
|
[Address(Slot = "4")]
|
|
bool Contains(T item);
|
|
|
|
/// <summary>Copies the elements of the <see cref="T:System.Collections.Generic.ICollection`1" /> 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.Generic.ICollection`1" />. The <see cref="T:System.Array" /> must have zero-based indexing.</param>
|
|
/// <param name="arrayIndex">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="arrayIndex" /> is less than 0.</exception>
|
|
/// <exception cref="T:System.ArgumentException">The number of elements in the source <see cref="T:System.Collections.Generic.ICollection`1" /> is greater than the available space from <paramref name="arrayIndex" /> to the end of the destination <paramref name="array" />.</exception>
|
|
// Token: 0x06003113 RID: 12563
|
|
[Token(Token = "0x6003113")]
|
|
[Address(Slot = "5")]
|
|
void CopyTo(T[] array, int arrayIndex);
|
|
|
|
/// <summary>Removes the first occurrence of a specific object from the <see cref="T:System.Collections.Generic.ICollection`1" />.</summary>
|
|
/// <param name="item">The object to remove from the <see cref="T:System.Collections.Generic.ICollection`1" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="item" /> was successfully removed from the <see cref="T:System.Collections.Generic.ICollection`1" />; otherwise, <see langword="false" />. This method also returns <see langword="false" /> if <paramref name="item" /> is not found in the original <see cref="T:System.Collections.Generic.ICollection`1" />.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only.</exception>
|
|
// Token: 0x06003114 RID: 12564
|
|
[Token(Token = "0x6003114")]
|
|
[Address(Slot = "6")]
|
|
bool Remove(T item);
|
|
}
|
|
}
|