40 lines
1.8 KiB
C#
40 lines
1.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Collections.Generic
|
|
{
|
|
/// <summary>Provides the base interface for the abstraction of sets.</summary>
|
|
/// <typeparam name="T">The type of elements in the set.</typeparam>
|
|
// Token: 0x02000371 RID: 881
|
|
[Token(Token = "0x2000371")]
|
|
public interface ISet<T> : ICollection<T>, IEnumerable<T>, IEnumerable
|
|
{
|
|
/// <summary>Adds an element to the current set and returns a value to indicate if the element was successfully added.</summary>
|
|
/// <param name="item">The element to add to the set.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the element is added to the set; <see langword="false" /> if the element is already in the set.</returns>
|
|
// Token: 0x06001786 RID: 6022
|
|
[Token(Token = "0x6001786")]
|
|
[Address(Slot = "0")]
|
|
bool Add(T item);
|
|
|
|
/// <summary>Modifies the current set so that it contains all elements that are present in the current set, in the specified collection, or in both.</summary>
|
|
/// <param name="other">The collection to compare to the current set.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="other" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06001787 RID: 6023
|
|
[Token(Token = "0x6001787")]
|
|
[Address(Slot = "1")]
|
|
void UnionWith(IEnumerable<T> other);
|
|
|
|
/// <summary>Modifies the current set so that it contains only elements that are also in a specified collection.</summary>
|
|
/// <param name="other">The collection to compare to the current set.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="other" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06001788 RID: 6024
|
|
[Token(Token = "0x6001788")]
|
|
[Address(Slot = "2")]
|
|
void IntersectWith(IEnumerable<T> other);
|
|
}
|
|
}
|