Struct FindByKey
- Namespace
- Mech3DotNet.Reader
- Assembly
- Mech3DotNet.dll
An operation to find one or more ReaderValue by key in a ReaderList.
This operation returns multiple values. Each value is the next index of the key.
public struct FindByKey : IQueryOperation
- Implements
- Inherited Members
Constructors
FindByKey(string)
public FindByKey(string key)
Parameters
key
string
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
ReaderValuepath
List<string>
Returns
- ReaderValue
A ReaderList with one or more values.
Exceptions
- ConversionException
Thrown if the reader value this operation is applied to is not a list.
- NotFoundException
Thrown if no keys are found in the list.