Table of Contents

Class DefaultInlineConstraintResolver

Namespace
System.Web.Mvc.Routing
Assembly
System.Web.Mvc.dll

The default implementation of IInlineConstraintResolver. Resolves constraints by parsing a constraint key and constraint arguments, using a map to resolve the constraint type, and calling an appropriate constructor for the constraint type.

public class DefaultInlineConstraintResolver : IInlineConstraintResolver
Inheritance
DefaultInlineConstraintResolver
Implements
Inherited Members

Constructors

DefaultInlineConstraintResolver()

public DefaultInlineConstraintResolver()

Properties

ConstraintMap

Gets the mutable dictionary that maps constraint keys to a particular constraint type.

public IDictionary<string, Type> ConstraintMap { get; }

Property Value

IDictionary<string, Type>

Methods

ResolveConstraint(string)

public virtual IRouteConstraint ResolveConstraint(string inlineConstraint)

Parameters

inlineConstraint string

Returns

IRouteConstraint