1 instantiation of ParameterSubsegment
System.Web (1)
Routing\RouteParser.cs (1)
147
pathSubsegments.Add(new
ParameterSubsegment
(parameterName));
28 references to ParameterSubsegment
System.Web (28)
Routing\ContentPathSegment.cs (2)
14
return Subsegments.Any<PathSubsegment>(seg => (seg is
ParameterSubsegment
) && (((
ParameterSubsegment
)seg).IsCatchAll));
Routing\ParsedRoute.cs (22)
47
ForEachParameter(PathSegments, delegate(
ParameterSubsegment
parameterSubsegment) {
94
ParameterSubsegment
parameterSubsegment = GetParameterSubsegment(PathSegments, parameterName);
102
ForEachParameter(PathSegments, delegate(
ParameterSubsegment
parameterSubsegment) {
117
bool hasAllRequiredValues = ForEachParameter(PathSegments, delegate(
ParameterSubsegment
parameterSubsegment) {
135
ForEachParameter(PathSegments, delegate(
ParameterSubsegment
parameterSubsegment) {
215
ParameterSubsegment
parameterSubsegment = subsegment as
ParameterSubsegment
;
338
private static bool ForEachParameter(IList<PathSegment> pathSegments, Func<
ParameterSubsegment
, bool> action) {
356
ParameterSubsegment
parameterSubsegment = subsegment as
ParameterSubsegment
;
377
private static
ParameterSubsegment
GetParameterSubsegment(IList<PathSegment> pathSegments, string parameterName) {
378
ParameterSubsegment
foundParameterSubsegment = null;
380
bool continueProcessing = ForEachParameter(pathSegments, delegate(
ParameterSubsegment
parameterSubsegment) {
393
private static bool IsParameterRequired(
ParameterSubsegment
parameterSubsegment, RouteValueDictionary defaultValues, out object defaultValue) {
496
ParameterSubsegment
catchAllSegment = contentPathSegment.Subsegments[0] as
ParameterSubsegment
;
517
ParameterSubsegment
parameterSubsegment = routeSegment.Subsegments[0] as
ParameterSubsegment
;
541
ParameterSubsegment
parameterNeedsValue = null; // Keeps track of a parameter segment that is pending a value
547
ParameterSubsegment
parameterSubsegment = routeSegment.Subsegments[indexOfLastSegmentUsed] as
ParameterSubsegment
;
644
return (lastIndex == 0) || (routeSegment.Subsegments[0] is
ParameterSubsegment
);
Routing\RouteParser.cs (4)
258
foundCatchAllParameter = subsegments.Any<PathSubsegment>(seg => (seg is
ParameterSubsegment
) && (((
ParameterSubsegment
)seg).IsCatchAll));
289
ParameterSubsegment
parameterSubsegment = subsegment as
ParameterSubsegment
;