Method GetOperand
GetOperand<TItem>(Index)
Specialized indexer to get the element as a specific derived type
public TItem? GetOperand<TItem>(Index i) where TItem : IrMetadata
Parameters
i
Indexindex for the item
Returns
- TItem
Item at the specified index
Type Parameters
TItem
Type of the element (must be derived from IrMetadata
Remarks
This provides a common (and likely internally optimized) means of getting an element as a specific type
Exceptions
- ArgumentOutOfRangeException
index is out of range for the collection
- InvalidCastException
If the element at the index is not castable to
TItem