Click or drag to resize

CompoundValueT Class

Represents a collection of individual values that together represent a compound value once all the values have been assigned.
Inheritance Hierarchy

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public class CompoundValue<T> : Collection<T?>
where T : struct, new()
View Source

Type Parameters

T
Type of composite values.

The CompoundValueT type exposes the following members.

Constructors
 NameDescription
Public methodCompoundValueT Creates a new CompoundValueT.
Public methodCompoundValueT(IEnumerableT) Creates a new CompoundValueT from the specified list.
Public methodCompoundValueT(IEnumerableNullableT) Creates a new CompoundValueT from the specified list.
Public methodCompoundValueT(Int32) Creates a new CompoundValueT specifing the total number of composite values to track.
Top
Properties
 NameDescription
Public propertyAllAssigned Gets a boolean value indicating if all of the composite values have been assigned a value.
Public propertyCountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionNullableT)
Public propertyItemGets or sets the element at the specified index.
(Inherited from CollectionNullableT)
Protected propertyItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionNullableT)
Public propertyNoneAssigned Gets a boolean value indicating if none of the composite values have been assigned a value.
Top
Methods
 NameDescription
Public methodAddAdds an object to the end of the CollectionT.
(Inherited from CollectionNullableT)
Public methodClearRemoves all elements from the CollectionT.
(Inherited from CollectionNullableT)
Protected methodClearItemsRemoves all elements from the CollectionT.
(Inherited from CollectionNullableT)
Public methodContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionNullableT)
Public methodCopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionNullableT)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionNullableT)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionNullableT)
Public methodInsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionNullableT)
Protected methodInsertItemInserts an element into the CollectionT at the specified index.
(Inherited from CollectionNullableT)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemoveRemoves the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionNullableT)
Public methodRemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionNullableT)
Protected methodRemoveItemRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionNullableT)
Protected methodSetItemReplaces the element at the specified index.
(Inherited from CollectionNullableT)
Public methodToArray Gets an array of all the GetValueOrDefault elements of the CompoundValueT.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
Composite values are stored as NullableT and can be cumulated until all values have been assigned so that a compound value can be created.
See Also

Reference

GSF Namespace