UniqueIntegerCollection Class

A type-safe collection of unique integer values with an optional range restriction and zero exclusion

Definition

Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
[SerializableAttribute]
public class UniqueIntegerCollection : Collection<int>
Inheritance
Object    Collection<Int32>    UniqueIntegerCollection

Constructors

UniqueIntegerCollection() Default constructor
UniqueIntegerCollection(IEnumerable<Int32>) Construct a collection from an enumerable list of unique integers without range checking and with zero allowed.
UniqueIntegerCollection(UniqueIntegerCollection) Copy constructor
UniqueIntegerCollection(Int32, Int32, Boolean) Construct a collection with a range and zero exclusion option
UniqueIntegerCollection(IEnumerable<Int32>, Int32, Int32, Boolean) Construct a collection from an enumerable list of unique integers with a range and zeros exclusion setting.

Properties

AllowZero This read-only property is used to get whether or not zero is allowed as a valid value
CountGets the number of elements actually contained in the Collection<T>.
(Inherited from Collection<Int32>)
ItemGets or sets the element at the specified index.
(Inherited from Collection<Int32>)
ItemsGets a IList<T> wrapper around the Collection<T>.
(Inherited from Collection<Int32>)
MaximumValue This read-only property is used to get the highest value allowed to be added to the collection
MinimumValue This read-only property is used to get the minimum value allowed to be added to the collection

Methods

AddAdds an object to the end of the Collection<T>.
(Inherited from Collection<Int32>)
AddRange Add a range of integers from an enumerable list
ClearRemoves all elements from the Collection<T>.
(Inherited from Collection<Int32>)
ClearItemsRemoves all elements from the Collection<T>.
(Inherited from Collection<Int32>)
ContainsDetermines whether an element is in the Collection<T>.
(Inherited from Collection<Int32>)
CopyToCopies the entire Collection<T> to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from Collection<Int32>)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumeratorReturns an enumerator that iterates through the Collection<T>.
(Inherited from Collection<Int32>)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<T>.
(Inherited from Collection<Int32>)
InsertInserts an element into the Collection<T> at the specified index.
(Inherited from Collection<Int32>)
InsertItem Insert an integer into the collection
(Overrides Collection<T>.InsertItem(Int32, T))
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ParseValues This is used to parse a set of individual numbers or ranges of numbers from a string and store them in the collection.
RemoveRemoves the first occurrence of a specific object from the Collection<T>.
(Inherited from Collection<Int32>)
RemoveAtRemoves the element at the specified index of the Collection<T>.
(Inherited from Collection<Int32>)
RemoveItemRemoves the element at the specified index of the Collection<T>.
(Inherited from Collection<Int32>)
RemoveRange Remove a range of items from the collection
SetItem Set an item in the collection
(Overrides Collection<T>.SetItem(Int32, T))
Sort This is used to sort the collection in ascending or descending order
ToString This is used to get a string containing the values in the collection
(Overrides Object.ToString())

See Also