Skip to content

Struct DataPathSegment

Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll

One step down into a table: the field , or when that is null the element of a list (counted from 0).

public readonly record struct DataPathSegment : IEquatable<DataPathSegment>

Implements

IEquatable<DataPathSegment>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

DataPathSegment(string?, int)

One step down into a table: the field , or when that is null the element of a list (counted from 0).

public DataPathSegment(string? Name, int Index = -1)

Parameters

Name string?

Index int

Properties

Index

public int Index { get; init; }

Property Value

int

Name

public string? Name { get; init; }

Property Value

string?

Methods

Element(int)

public static DataPathSegment Element(int index)

Parameters

index int

Returns

DataPathSegment

Field(string)

public static DataPathSegment Field(string name)

Parameters

name string

Returns

DataPathSegment