NavigationRegionPath record

Namespace Runic.Navigation in Runic.Navigation 0.23.0

public sealed record NavigationRegionPath : IEquatable<NavigationRegionPath>

Inherits or implements IEquatable.

A region of a NavigationPath: its entries, from the bottom of its history to the current entry.

Parameters

Entries

The entries, bottom to top; empty for an empty region.

Constructors

NavigationRegionPath

public NavigationRegionPath(IReadOnlyList<NavigationEntryPath> Entries)

A region of a NavigationPath: its entries, from the bottom of its history to the current entry.

Parameters

Entries

The entries, bottom to top; empty for an empty region.

Properties

Entries

public IReadOnlyList<NavigationEntryPath> Entries { get; init; }

The entries, bottom to top; empty for an empty region.

Methods

FromJson

public static NavigationRegionPath FromJson(string json)

Reads a region that NavigationRegionPath.ToJson wrote.

Exceptions

FormatException

The text is not such a region.

ToJson

public string ToJson()

Writes the region as JSON, as an element of regions in NavigationPath.ToJson.