Interface IReadOnlySet<T>
A read-only set.
Inherited Members
Namespace: Virtlink.Utilib.Collections
Assembly: Virtlink.Utilib.dll
Syntax
public interface IReadOnlySet<T> : IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T | The type of elements in the set. |
Methods
| Improve this Doc View SourceContains(T)
Determines whether the specified item is contained in the set.
Declaration
bool Contains(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item to look for. |
Returns
Type | Description |
---|---|
System.Boolean | true when the item is in the set; otherwise, false. |
IsProperSubsetOf(IEnumerable<T>)
Determines whether the specified collection is a proper subset of this set.
Declaration
bool IsProperSubsetOf(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | other | The collection. |
Returns
Type | Description |
---|---|
System.Boolean | true when the specified collection is a proper subset of this set; otherwise, false. |
IsProperSupersetOf(IEnumerable<T>)
Determines whether the specified collection is a proper superset of this set.
Declaration
bool IsProperSupersetOf(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | other | The collection. |
Returns
Type | Description |
---|---|
System.Boolean | true when the specified collection is a proper superset of this set; otherwise, false. |
IsSubsetOf(IEnumerable<T>)
Determines whether the specified collection is a subset of this set.
Declaration
bool IsSubsetOf(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | other | The collection. |
Returns
Type | Description |
---|---|
System.Boolean | true when the specified collection is a subset of this set; otherwise, false. |
IsSupersetOf(IEnumerable<T>)
Determines whether the specified collection is a superset of this set.
Declaration
bool IsSupersetOf(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | other | The collection. |
Returns
Type | Description |
---|---|
System.Boolean | true when the specified collection is a superset of this set; otherwise, false. |
Overlaps(IEnumerable<T>)
Determines whether the specified collection overlaps this set.
Declaration
bool Overlaps(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | other | The collection. |
Returns
Type | Description |
---|---|
System.Boolean | true when the specified collection overlaps this set; otherwise, false. |
SetEquals(IEnumerable<T>)
Determines whether this set and the specified collection are equal.
Declaration
bool SetEquals(IEnumerable<T> other)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | other | The collection. |
Returns
Type | Description |
---|---|
System.Boolean | true when the specified collection is equal to this set; otherwise, false. |
TryGetValue(T, out T)
Determines whether the set contains a specified value.
Declaration
bool TryGetValue(T equalValue, out T actualValue)
Parameters
Type | Name | Description |
---|---|---|
T | equalValue | The value to search for. |
T | actualValue | The matching value from the set, if found;
otherwise, |
Returns
Type | Description |
---|---|
System.Boolean | true if a matching value was found; otherwise, false. |