Home PathSegment Class
PathSegment Class
Cancel

PathSegment Class

Namespace: Json.Path

Inheritance: PathSegment 🡒 object

Represents a single path segment, generally indicated in the path by square brackets [].

Properties

NameTypeSummary
IsRecursiveboolIndicates whether the segment is evaluated as a recursive descent operation.
IsShorthandboolIndicates whether the segment is represented in its shorthand form (e.g. .foo instead of ['foo']).
SelectorsISelector[]Gets the collection of selectors present in the path.

Methods

BuildString(StringBuilder builder)

Builds a string representation using a System.Text.StringBuilder.

Declaration

1
public void BuildString(StringBuilder builder)
ParameterTypeDescription
builderStringBuilderA string builder.

ToString()

Returns a string that represents the current object.

Declaration

1
public override string ToString()

Returns

A string that represents the current object.

Contents