1 write to IsArray
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointParameter.cs (1)
59
IsArray
= TryGetArrayElementType(typeSymbol, out var elementType);
12 references to IsArray
Microsoft.AspNetCore.Http.RequestDelegateGenerator (12)
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (7)
30
if (endpointParameter.
IsArray
)
78
if (!endpointParameter.IsOptional && !endpointParameter.
IsArray
)
93
if (endpointParameter.
IsArray
&& endpointParameter.IsParsable)
126
else if (endpointParameter.
IsArray
)
177
if (parameter.
IsArray
&& parameter.ElementType.NullableAnnotation == NullableAnnotation.Annotated)
224
if (endpointParameter.
IsArray
)
419
private static string EmitParameterDiagnosticComment(this EndpointParameter endpointParameter) => $"// Endpoint Parameter: {endpointParameter.SymbolName} (Type = {endpointParameter.Type}, IsOptional = {endpointParameter.IsOptional}, IsParsable = {endpointParameter.IsParsable}, IsArray = {endpointParameter.
IsArray
}, Source = {endpointParameter.Source})";
StaticRouteHandlerModel\Endpoint.cs (1)
92
parameter is {
IsArray
: true, ElementType.SpecialType: SpecialType.System_String, Source: EndpointParameterSource.Query });
StaticRouteHandlerModel\EndpointParameter.cs (4)
120
AssigningCode = !
IsArray
229
else if (
IsArray
&& ElementType.SpecialType == SpecialType.System_String)
262
|| (
IsArray
&& ElementType.SpecialType == SpecialType.System_String)
264
|| (
IsArray
&& TryGetParsability(ElementType, wellKnownTypes, out var _));