Interface ISet<T>
Generic collection that guarantees the uniqueness of its elements, as defined by some comparer. It also supports basic set operations such as Union, Intersection, Complement and Exclusive Complement.
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Core.dll
Syntax
public interface ISet<T> : ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Methods
Add(T)
Declaration
bool Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
bool |
ExceptWith(IEnumerable<T>)
Declaration
void ExceptWith(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | other |
IntersectWith(IEnumerable<T>)
Declaration
void IntersectWith(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | other |
IsProperSubsetOf(IEnumerable<T>)
Declaration
bool IsProperSubsetOf(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | other |
Returns
Type | Description |
---|---|
bool |
IsProperSupersetOf(IEnumerable<T>)
Declaration
bool IsProperSupersetOf(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | other |
Returns
Type | Description |
---|---|
bool |
IsSubsetOf(IEnumerable<T>)
Declaration
bool IsSubsetOf(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | other |
Returns
Type | Description |
---|---|
bool |
IsSupersetOf(IEnumerable<T>)
Declaration
bool IsSupersetOf(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | other |
Returns
Type | Description |
---|---|
bool |
Overlaps(IEnumerable<T>)
Declaration
bool Overlaps(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | other |
Returns
Type | Description |
---|---|
bool |
SetEquals(IEnumerable<T>)
Declaration
bool SetEquals(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | other |
Returns
Type | Description |
---|---|
bool |
SymmetricExceptWith(IEnumerable<T>)
Declaration
void SymmetricExceptWith(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | other |
UnionWith(IEnumerable<T>)
Declaration
void UnionWith(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | other |