Class UniqueList<T>
This is a list containing unique items.
Inheritance
System.Object
UniqueList<T>
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Common.Lib.Collections.Generic
Assembly: ImageVault.Common.dll
Syntax
public class UniqueList<T> : UniqueListBase<T, List<T>, ListFactory<T>>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Constructors
UniqueList(Boolean, Int32)
Initializes a new instance of the UniqueList<T> class.
Declaration
public UniqueList(bool quiet = false, int capacity = 16)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | quiet | |
System.Int32 | capacity |
UniqueList(IEqualityComparer<T>, Boolean, Int32)
Initializes a new instance of the UniqueList<T> class.
Declaration
public UniqueList(IEqualityComparer<T> comparer, bool quiet = false, int capacity = 16)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEqualityComparer<T> | comparer | |
System.Boolean | quiet | |
System.Int32 | capacity |
UniqueList(Func<T, T, Boolean>, Boolean, Int32)
Initializes a new instance of the UniqueList<T> class.
Declaration
public UniqueList(Func<T, T, bool> comparer, bool quiet = false, int capacity = 16)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, T, System.Boolean> | comparer | |
System.Boolean | quiet | |
System.Int32 | capacity |
UniqueList(Int32)
Initializes a new instance of the UniqueList<T> class.
Declaration
public UniqueList(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity | The number of items the list initially can store |
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable