Class NetworkHashSet<T>
- Namespace
- Netick
- Assembly
- Netick.dll
A networked HashSet<T> collection.
public sealed class NetworkHashSet<T> : NetworkHashSet, INetworkCollection, IEnumerable<T>, IEnumerable where T : unmanaged
Type Parameters
T
- Inheritance
-
NetworkHashSet<T>
- Implements
-
IEnumerable<T>
- Inherited Members
Constructors
NetworkHashSet(int)
public NetworkHashSet(int capacity)
Parameters
capacityint
Properties
Count
Gets the number of elements contained in the set.
public int Count { get; }
Property Value
Methods
Add(T)
Adds an item to the set.
public bool Add(T item)
Parameters
itemTThe element to add.
Returns
- bool
true if the element is added to the set; false if the element is already present or the set was full.
Clear()
Removes all item from the set.
public void Clear()
Contains(T)
Determines whether the set contains a specific value.
public bool Contains(T item)
Parameters
itemTThe object to locate in the set.
Returns
- bool
true if item is found; otherwise, false.
ExceptWith(IEnumerable<T>)
public void ExceptWith(IEnumerable<T> other)
Parameters
otherIEnumerable<T>
GetEnumerator()
public NetworkHashSet<T>.Enumerator GetEnumerator()
Returns
InternalInit(INetickNetworkScript, int*, int, int)
public override void InternalInit(INetickNetworkScript beh, int* state, int elementSizeWords, int flags)
Parameters
behINetickNetworkScriptstateint*elementSizeWordsintflagsint
InternalReset()
public override void InternalReset()
IntersectWith(IEnumerable<T>)
public void IntersectWith(IEnumerable<T> other)
Parameters
otherIEnumerable<T>
Overlaps(IEnumerable<T>)
public bool Overlaps(IEnumerable<T> other)
Parameters
otherIEnumerable<T>
Returns
Remove(T)
Removes the specified item from the set.
public bool Remove(T item)
Parameters
itemTThe element to remove.
Returns
- bool
true if the element is successfully removed; otherwise, false.
SymmetricExceptWith(IEnumerable<T>)
public void SymmetricExceptWith(IEnumerable<T> other)
Parameters
otherIEnumerable<T>
UnionWith(IEnumerable<T>)
public void UnionWith(IEnumerable<T> other)
Parameters
otherIEnumerable<T>