Table of Contents

Struct FindByIndex

Namespace
Mech3DotNet.Reader
Assembly
Mech3DotNet.dll

An operation to find a single ReaderValue by index in a ReaderList.

The index may be negative, in which case the index is calculated from the back of the array.

public struct FindByIndex : IQueryOperation
Implements
Inherited Members

Constructors

FindByIndex(int)

public FindByIndex(int index)

Parameters

index int

Methods

Apply(ReaderValue, List<string>)

Apply the operation to the ReaderValue, and modify the path appropriately.

This method is not usually called manually, but is called when the operation is applied to a Query.

public ReaderValue Apply(ReaderValue value, List<string> path)

Parameters

value ReaderValue
path List<string>

Returns

ReaderValue

A single ReaderValue at the specified index.

Exceptions

ConversionException

Thrown if the reader value this operation is applied to is not an array.

NotFoundException

Thrown if the index is out of range.