Table of Contents

Method GetOperand

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

GetOperand<T>(int)

Gets an operand by index as a specific type

public T? GetOperand<T>(int index) where T : IrMetadata

Parameters

index int

Index of the operand

Returns

T

Operand

Type Parameters

T

Type of the operand

Exceptions

InvalidCastException

When the operand is not castable to T

ArgumentOutOfRangeException

When the index is out of range for the operands of this node