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: 2023.1.2.0
[SerializableAttribute]
public class UniqueIntegerCollection : Collection<int>
Inheritance
Object    CollectionInt32    UniqueIntegerCollection

Constructors

UniqueIntegerCollection Default constructor
UniqueIntegerCollection(IEnumerableInt32) 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(IEnumerableInt32, 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 CollectionT.
(Inherited from CollectionInt32)
ItemGets or sets the element at the specified index.
(Inherited from CollectionInt32)
ItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionInt32)
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 CollectionT.
(Inherited from CollectionInt32)
AddRange Add a range of integers from an enumerable list
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionInt32)
ClearItemsRemoves all elements from the CollectionT.
(Inherited from CollectionInt32)
ContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionInt32)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionInt32)
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 CollectionT.
(Inherited from CollectionInt32)
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 CollectionT.
(Inherited from CollectionInt32)
InsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionInt32)
InsertItem Insert an integer into the collection
(Overrides CollectionTInsertItem(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 CollectionT.
(Inherited from CollectionInt32)
RemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionInt32)
RemoveItemRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionInt32)
RemoveRange Remove a range of items from the collection
SetItem Set an item in the collection
(Overrides CollectionTSetItem(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 ObjectToString)

See Also