2 writes to IsOptional
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
StaticWebAssetPathPattern.cs (2)
118
token.
IsOptional
= true;
370
IsOptional
= false
6 references to IsOptional
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (6)
StaticWebAssetPathPattern.cs (5)
233
if (applyPreferences && segment.
IsOptional
&& !segment.IsPreferred)
254
if (!foundAllValues && !segment.
IsOptional
)
309
if (segment.
IsOptional
)
325
if (IsLiteralSegment(segment) || !segment.
IsOptional
)
454
if (segment.
IsOptional
)
StaticWebAssetPathSegment.cs (1)
54
string.Concat(Parts.Select(p => p.IsLiteral ? p.Name.ToString() : $"{{{p.Name}}}").Prepend("#[").Append($"]{(
IsOptional
? (IsPreferred ? "!" : "?") : "")}"));