Method GetOperand
GetOperand<TItem>(Index)
Specialized indexer to get the element as a specific derived type
Declaration
public TItem GetOperand<TItem>(Index i)
where TItem : LlvmMetadata
Parameters
public TItem GetOperand<TItem>(Index i)
where TItem : LlvmMetadata
Index | i | index for the item |
Returns
TItem | Item at the specified index |
Type Parameters
TItem | Type of the element (must be derived from LlvmMetadata |
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 |