public MDNode this[int index] { get { var nodeHanlde = NativeMethods.NamedMDNodeGetOperand(OwningNode.NativeHandle, (uint)index); return(LlvmMetadata.FromHandle <MDNode>(OwningNode.ParentModule.Context, nodeHanlde)); } }
public MDNode this[int index] { get { var nodeHanlde = LLVMNamedMDNodeGetOperand(OwningNode.NativeHandle, (uint)index); return(LlvmMetadata.FromHandle <MDNode>(OwningNode.ParentModule.Context, nodeHanlde)); } /* TODO: * set * { index.VerifyRange(0, Count, nameof(index)); * LLVMNamedMDNodeSetOperand( index, value.NativeHandle ); * } */ }
public MDNode this[int index] { get { index.ValidateRange(0, Count, nameof(index)); var nodeHanlde = LibLLVMNamedMDNodeGetOperand(OwningNode.NativeHandle, ( uint )index); return(LlvmMetadata.FromHandle <MDNode>(OwningNode.ParentModule.Context, nodeHanlde)); } set { index.ValidateRange(0, Count, nameof(index)); LibLLVMNamedMDNodeSetOperand(OwningNode.NativeHandle, ( uint )index, value.MetadataHandle); } }