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
segmentRouteSegmentThe route segment containing the parameter information.
sourcestringThe 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
segmentRouteSegmentThe route segment to match.
sourcestringThe source value to match against the route segment.