Class ValueListSetT

ValueListSet<T> class

Represents A specialised list that requires all elements to be unique.

public class ValueListSet<T> : IReadOnlyList<T>
    where T : struct
ParameterDescription
TAny value type.

Constructors

NameDescription
ValueListSet()The default constructor.
ValueListSet(int, IEqualityComparer)

Properties

NameDescription
Comparer { get; }
Count { get; }
Indices { get; }
Item { get; }

Methods

NameDescription
Add(ref T)
ApplyTransform(Func<T, T>)
Clear()
Contains(ref T)
CopyTo(ValueListSet)
CopyTo(T[], int)
Exists(int)
GetEnumerator()
IndexOf(ref T)
Use(ref T)

Remarks

  • This collection is based on Dictionary - Replaces VertexList - Designed to work with lists of vertices. This collection is: - like a HashSet, in the sense that every element must be unique. - like a list, because elements can be accessed by index: Item. - IndexOf and Use are fast as in a HashSet.

See Also