Table of Contents

Interface IRouteParameterParser

Namespace
Artemis.UI.Shared.Routing.ParameterParsers
Assembly
Artemis.UI.Shared.dll

Represents a contract for parsing route parameters.

public interface IRouteParameterParser

Methods

GetValue(RouteSegment, string)

Gets the parameter value from the provided source value.

object GetValue(RouteSegment segment, string source)

Parameters

segment RouteSegment

The route segment containing the parameter information.

source string

The source value from which to extract the parameter value.

Returns

object

The extracted parameter value.

IsMatch(RouteSegment, string)

Checks if the given segment matches the provided source.

bool IsMatch(RouteSegment segment, string source)

Parameters

segment RouteSegment

The route segment to match.

source string

The source value to match against the route segment.

Returns

bool

true if the segment matches the source; otherwise, false.