Class GenericVariableCollectionIndexBase
All index elements of a GenericVariableCollectionBase<TGenericCollection> combined in a single poco.
Inheritance
System.Object
GenericVariableCollectionIndexBase
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: OPTANO.Modeling.Optimization
Assembly: Optimization.dll
Syntax
public abstract class GenericVariableCollectionIndexBase
Constructors
GenericVariableCollectionIndexBase(Object[])
Declaration
public GenericVariableCollectionIndexBase(object[] indexArray)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | indexArray |
Properties
IndexLength
Gets the length (i.e. the number of generic type parameters) of the index.
Declaration
public int IndexLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
GetCastedIndex<T>(Int32)
Gets the index
th element from OPTANO.Modeling.Optimization.GenericVariableCollectionIndexBase.IndexArray.
Declaration
protected T GetCastedIndex<T>(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The position of the index element |
Returns
Type | Description |
---|---|
T | The casted index element. |
Type Parameters
Name | Description |
---|---|
T | The type to cast the element to. |
ValidateIndexLengthAndThrow(Object[])
Validates the index. Checks that it is not null, of the correct length and that all elements have the correct type.
Declaration
protected void ValidateIndexLengthAndThrow(object[] index)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | index | The index to validate |