Table of Contents

Method GetOperand

Namespace
Ubiquity.NET.Llvm.Metadata
Assembly
Ubiquity.NET.Llvm.dll

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 Index

index 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