2 writes to HasDefaultValue
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
StaticRouteHandlerModel\EndpointParameter.cs (2)
25
HasDefaultValue
= parameter.HasExplicitDefaultValue;
35
HasDefaultValue
= parameter?.HasExplicitDefaultValue ?? false;
1 reference to HasDefaultValue
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
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)}"));