Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Collections/Generic/ICollection.cs
T
2026-04-10 22:50:51 +02:00

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: 0x0200060A RID: 1546
[Token(Token = "0x200060A")]
[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: 0x17000750 RID: 1872
// (get) Token: 0x06002EF6 RID: 12022
[Token(Token = "0x17000750")]
int Count
{
[Token(Token = "0x6002EF6")]
[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: 0x17000751 RID: 1873
// (get) Token: 0x06002EF7 RID: 12023
[Token(Token = "0x17000751")]
bool IsReadOnly
{
[Token(Token = "0x6002EF7")]
[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: 0x06002EF8 RID: 12024
[Token(Token = "0x6002EF8")]
[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: 0x06002EF9 RID: 12025
[Token(Token = "0x6002EF9")]
[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: 0x06002EFA RID: 12026
[Token(Token = "0x6002EFA")]
[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: 0x06002EFB RID: 12027
[Token(Token = "0x6002EFB")]
[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: 0x06002EFC RID: 12028
[Token(Token = "0x6002EFC")]
[Address(Slot = "6")]
bool Remove(T item);
}
}