Based on , but this also checks if elements do already exist. It will
not add duplicates, they are ignored and no exception is thrown! Each element is unique.
Unlike , which behaves similarly this one preserves the adding order.
List T HashSet T View code on GitHub
Inheritance Hierarchy
DeltaEngine.Extensions UniqueList T
Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Type Parameters
- T
The UniqueList T type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UniqueList T | Initializes a new instance of the UniqueList T class | |
UniqueList T (IEnumerable T ) | Initializes a new instance of the UniqueList T class |
Methods
Name | Description | |
---|---|---|
Add | ||
AddRange | ||
Clear | ||
Contains | ||
CopyTo | ||
Exists | ||
Find | ||
FindAll | ||
GetEnumerator | ||
IndexOf | ||
Insert | ||
Remove | ||
RemoveAll | ||
RemoveAt | ||
Sort | ||
Sort(IComparer T ) | ||
ToArray | ||
ToList |
Extension Methods
Name | Description | |
---|---|---|
AsWeakEnumerable | (Defined by TestEnumerable.) | |
Compare T | (Defined by ArrayExtensions.) | |
ToText T | (Defined by ArrayExtensions.) |
Properties
Name | Description | |
---|---|---|
Count | ||
IsReadOnly | ||
Item |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable GetEnumerator |
See Also