DayInstanceCollection Class

A type-safe collection of DayInstance objects. All instances in the collection are unique.

Definition

Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
[SerializableAttribute]
public class DayInstanceCollection : Collection<DayInstance>
Inheritance
Object    CollectionDayInstance    DayInstanceCollection

Constructors

DayInstanceCollection Default constructor
DayInstanceCollection(IEnumerableDayInstance) Construct a collection from an enumerable list of DayInstance objects

Properties

CountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionDayInstance)
ItemGets or sets the element at the specified index.
(Inherited from CollectionDayInstance)
ItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionDayInstance)

Methods

Add(T)Adds an object to the end of the CollectionT.
(Inherited from CollectionDayInstance)
Add(DayOfWeek) Add a DayInstance to the collection and set it to all instances of the specified day of the week.
Add(Int32, DayOfWeek) Add a DayInstance to the collection and set it to the specified instance of the specified day of the week.
AddRange(IEnumerableDayInstance) Add a range of DayInstance objects from an enumerable list
AddRange(IEnumerableDayOfWeek) Add a range of DayOfWeek values to the collection. The instance for each entry will be set to zero to represent all days rather than a specific instance.
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionDayInstance)
ClearItemsRemoves all elements from the CollectionT.
(Inherited from CollectionDayInstance)
ContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionDayInstance)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionDayInstance)
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 CollectionDayInstance)
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 CollectionDayInstance)
InsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionDayInstance)
InsertItem Insert a day instance into the collection
(Overrides CollectionTInsertItem(Int32, T))
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RemoveRemoves the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionDayInstance)
RemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionDayInstance)
RemoveItemRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionDayInstance)
RemoveRange Remove a range of items from the collection
SetItem Set an item in the collection
(Overrides CollectionTSetItem(Int32, T))
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also