11 references to IsOptional
Microsoft.AspNetCore.Components (9)
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
589
if (parameter.
IsOptional
)
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (3)
138
if (!_hasDefaultValue[i] && !parameter.
IsOptional
)
232
!part.
IsOptional
)
302
if (routeSegment.Parts[indexOfLastSegment] is RoutePatternParameterPart parameter && parameter.
IsOptional
&&
src\Http\Routing\src\Patterns\RoutePatternParameterPart.cs (1)
111
if (
IsOptional
)
src\Http\Routing\src\Patterns\RoutePatternParser.cs (2)
223
if (templatePart.
IsOptional
&& templatePart.Default != null)
357
if (part is RoutePatternParameterPart parameter && parameter.
IsOptional
&& parts.Count > 1)
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
132
if (parameter.
IsOptional
)
src\Http\Routing\src\Tree\UrlMatchingTree.cs (1)
273
(parameterPart.
IsOptional
||
Microsoft.AspNetCore.Components.Tests (2)
Routing\TemplateParserTests.cs (2)
312
xParameterPart.
IsOptional
== yParameterPart.
IsOptional
&&