A hash set that implements ISerializationCallbackReceiver for serializing data. More...
Public Member Functions | |
bool | Add (T item) |
Adds an item to the set. More... | |
void | Clear () |
Removes all items from the set. More... | |
bool | Contains (T item) |
Checks if an item is in the set. More... | |
void | CopyTo (T[] array, int arrayIndex) |
Copies the contents of the set to an array. More... | |
void | ExceptWith (IEnumerable< T > other) |
Removes items in another collection from this set. More... | |
IEnumerator< T > | GetEnumerator () |
Iterates the set. More... | |
void | IntersectWith (IEnumerable< T > other) |
Removes items from this set that are not in another collection. More... | |
bool | IsProperSubsetOf (IEnumerable< T > other) |
Checks if this set is a proper subset of another collection, meaning all of the items in this set are in the other collection and the other collection contains at least one item that is not in the set. More... | |
bool | IsProperSupersetOf (IEnumerable< T > other) |
Checks if this set is a proper superset of another collection, meaning all of the items in the other collection are in this set and this set contains at least one item that is not in the other collection. More... | |
bool | IsSubsetOf (IEnumerable< T > other) |
Checks if this set is a subset of another collection, meaning all of the items in this set are in the other collection. More... | |
bool | IsSupersetOf (IEnumerable< T > other) |
Checks if this set is a superset of another collection, meaning all of the items in the other collection are in this set. More... | |
bool | Overlaps (IEnumerable< T > other) |
Checks if any of the items in another collection are in this set. More... | |
bool | Remove (T item) |
Removes an item from the set. More... | |
bool | SetEquals (IEnumerable< T > other) |
Checks if this set and another collection contain all the same items. More... | |
void | SymmetricExceptWith (IEnumerable< T > other) |
Remove items from this set that are in other, and adds items from other that are not in this set. More... | |
void | UnionWith (IEnumerable< T > other) |
Adds items to this set. More... | |
Properties | |
int | Count [get] |
The number of items in the hash set. More... | |
bool | IsReadOnly [get] |
Is the hash set read-only? More... | |
A hash set that implements ISerializationCallbackReceiver for serializing data.
bool KS.Unity.ksSerializableHashSet< T >.Add | ( | T | item | ) |
Adds an item to the set.
item | Item to add. |
void KS.Unity.ksSerializableHashSet< T >.Clear | ( | ) |
Removes all items from the set.
bool KS.Unity.ksSerializableHashSet< T >.Contains | ( | T | item | ) |
Checks if an item is in the set.
item | Item to check for. |
void KS.Unity.ksSerializableHashSet< T >.CopyTo | ( | T[] | array, |
int | arrayIndex | ||
) |
Copies the contents of the set to an array.
array | Array to copy to. |
arrayIndex | Index to begin copying to. |
void KS.Unity.ksSerializableHashSet< T >.ExceptWith | ( | IEnumerable< T > | other | ) |
Removes items in another collection from this set.
other | Items to remove this set. |
IEnumerator<T> KS.Unity.ksSerializableHashSet< T >.GetEnumerator | ( | ) |
Iterates the set.
void KS.Unity.ksSerializableHashSet< T >.IntersectWith | ( | IEnumerable< T > | other | ) |
Removes items from this set that are not in another collection.
other | Items to intersect with. |
bool KS.Unity.ksSerializableHashSet< T >.IsProperSubsetOf | ( | IEnumerable< T > | other | ) |
Checks if this set is a proper subset of another collection, meaning all of the items in this set are in the other collection and the other collection contains at least one item that is not in the set.
other | Items to check if is this is a proper subset of. |
bool KS.Unity.ksSerializableHashSet< T >.IsProperSupersetOf | ( | IEnumerable< T > | other | ) |
Checks if this set is a proper superset of another collection, meaning all of the items in the other collection are in this set and this set contains at least one item that is not in the other collection.
other | Items to check if is this is a proper superset of. |
bool KS.Unity.ksSerializableHashSet< T >.IsSubsetOf | ( | IEnumerable< T > | other | ) |
Checks if this set is a subset of another collection, meaning all of the items in this set are in the other collection.
other | Items to check if is this is a subset of. |
bool KS.Unity.ksSerializableHashSet< T >.IsSupersetOf | ( | IEnumerable< T > | other | ) |
Checks if this set is a superset of another collection, meaning all of the items in the other collection are in this set.
other | Items to check if is this is a superset of. |
bool KS.Unity.ksSerializableHashSet< T >.Overlaps | ( | IEnumerable< T > | other | ) |
Checks if any of the items in another collection are in this set.
other | Items to check for. |
bool KS.Unity.ksSerializableHashSet< T >.Remove | ( | T | item | ) |
Removes an item from the set.
item | Item to remove. |
bool KS.Unity.ksSerializableHashSet< T >.SetEquals | ( | IEnumerable< T > | other | ) |
Checks if this set and another collection contain all the same items.
other | Items to check for. |
void KS.Unity.ksSerializableHashSet< T >.SymmetricExceptWith | ( | IEnumerable< T > | other | ) |
Remove items from this set that are in other, and adds items from other that are not in this set.
other | Other items to symmetric except with. |
void KS.Unity.ksSerializableHashSet< T >.UnionWith | ( | IEnumerable< T > | other | ) |
Adds items to this set.
other | Items to add. |
|
get |
The number of items in the hash set.
|
get |
Is the hash set read-only?