Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Collections.Generic.HashSet< T > Class Template Reference

Classes

struct  Entry
 
struct  Enumerator
 

Public Member Functions

 HashSet ()
 
 HashSet (IEqualityComparer< T >? comparer)
 
 HashSet (int capacity)
 
 HashSet (IEnumerable< T > collection)
 
 HashSet (IEnumerable< T > collection, IEqualityComparer< T >? comparer)
 
 HashSet (int capacity, IEqualityComparer< T >? comparer)
 
void Clear ()
 
bool Contains (T item)
 
bool Remove (T item)
 
Enumerator GetEnumerator ()
 
virtual void GetObjectData (SerializationInfo info, StreamingContext context)
 
virtual void OnDeserialization (object? sender)
 
bool Add (T item)
 
bool TryGetValue (T equalValue, [MaybeNullWhen(false)] out T actualValue)
 
void UnionWith (IEnumerable< T > other)
 
void IntersectWith (IEnumerable< T > other)
 
void ExceptWith (IEnumerable< T > other)
 
void SymmetricExceptWith (IEnumerable< T > other)
 
bool IsSubsetOf (IEnumerable< T > other)
 
bool IsProperSubsetOf (IEnumerable< T > other)
 
bool IsSupersetOf (IEnumerable< T > other)
 
bool IsProperSupersetOf (IEnumerable< T > other)
 
bool Overlaps (IEnumerable< T > other)
 
bool SetEquals (IEnumerable< T > other)
 
void CopyTo (T[] array)
 
void CopyTo (T[] array, int arrayIndex)
 
void CopyTo (T[] array, int arrayIndex, int count)
 
int RemoveWhere (Predicate< T > match)
 
int EnsureCapacity (int capacity)
 
void TrimExcess ()
 

Static Public Member Functions

static IEqualityComparer< HashSet< T > > CreateSetComparer ()
 

Protected Member Functions

 HashSet (SerializationInfo info, StreamingContext context)
 

Package Functions

bool IsSubsetOfHashSetWithSameComparer (HashSet< T > other)
 

Static Package Functions

static bool EqualityComparersAreEqual (HashSet< T > set1, HashSet< T > set2)
 

Properties

int Count [get]
 
bool ICollection< T >. IsReadOnly [get]
 
IEqualityComparer< TComparer [get]
 

Private Member Functions

void ConstructFrom (HashSet< T > source)
 
void ICollection< T >. Add (T item)
 
int FindItemIndex (T item)
 
ref int GetBucketRef (int hashCode)
 
IEnumerator< T > IEnumerable< T >. GetEnumerator ()
 
IEnumerator IEnumerable. GetEnumerator ()
 
void Resize ()
 
void Resize (int newSize, bool forceNewHashCodes)
 
int Initialize (int capacity)
 
bool AddIfNotPresent (T value, out int location)
 
bool ContainsAllElements (IEnumerable< T > other)
 
void IntersectWithHashSetWithSameComparer (HashSet< T > other)
 
void IntersectWithEnumerable (IEnumerable< T > other)
 
void SymmetricExceptWithUniqueHashSet (HashSet< T > other)
 
void SymmetricExceptWithEnumerable (IEnumerable< T > other)
 
int int UnfoundCount CheckUniqueAndUnfoundElements (IEnumerable< T > other, bool returnIfUnfound)
 

Private Attributes

int[] _buckets
 
Entry[] _entries
 
ulong _fastModMultiplier
 
int _count
 
int _freeList
 
int _freeCount
 
int _version
 
IEqualityComparer< T_comparer
 
int UniqueCount
 

Detailed Description

Definition at line 13 of file HashSet.cs.


The documentation for this class was generated from the following file: