2 writes to DefaultValue
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
StaticRouteHandlerModel\EndpointParameter.cs (2)
26
DefaultValue
= parameter.GetDefaultValueString();
36
DefaultValue
= parameter?.GetDefaultValueString() ?? "null";
3 references to DefaultValue
Microsoft.AspNetCore.Http.RequestDelegateGenerator (3)
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (2)
148
codeWriter.WriteLine($"""{output_argument} = {endpointParameter.
DefaultValue
};""");
232
var fallback = endpointParameter.Type.SpecialType == SpecialType.System_String ? endpointParameter.
DefaultValue
: "null";
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (1)
28
var parameterTypeList = string.Join(", ", endpoint.Parameters.Select((p, i) => $"{EmitUnwrappedParameterType(p)} arg{i}{(p.HasDefaultValue ? $"= {p.
DefaultValue
}" : string.Empty)}"));