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