namespace Artemis.UI.Shared.Routing.ParameterParsers; /// /// Represents a contract for parsing route parameters. /// public interface IRouteParameterParser { /// /// Checks if the given segment matches the provided source. /// /// The route segment to match. /// The source value to match against the route segment. /// if the segment matches the source; otherwise, . bool IsMatch(RouteSegment segment, string source); /// /// Gets the parameter value from the provided source value. /// /// The route segment containing the parameter information. /// The source value from which to extract the parameter value. /// The extracted parameter value. object GetValue(RouteSegment segment, string source); }