Gets/sets the element at the specified position in the FifoQueue{T}.
Namespace:
DHI.Mike1D.Generic.Collections
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public T this[
int index
] { get; set; }
Public Default Property Item (
index As Integer
) As T
Get
Set
public:
virtual property T default[int index] {
T get (int index) sealed;
void set (int index, T value) sealed;
}
Parameters
- index
- Type: SystemInt32
Zero based index/position in queue
Return Value
Type:
TThe element at the specified index/position in the queue.
Implements
IListTItemInt32IReadOnlyListTItemInt32Remarks
FifoQueue{T} accepts null as a valid value for reference
types and allows duplicate elements.
This property provides the ability to access a specific element in
the collection by using the following syntax: myCollection[index].
Retrieving the value of this property is an O(1) operation;
setting the property is also an O(1) operation.
See Also