1 implementation of HasTryParse
Microsoft.AspNetCore.Http.Extensions (1)
ParameterBindingMetadata.cs (1)
17
public bool
HasTryParse
=> hasTryParse;
4 references to HasTryParse
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
EndpointMetadataApiDescriptionProvider.cs (2)
288
else if (parameterType == typeof(string) || (!parameterType.IsArray && parameterType != typeof(StringValues) && parameter.
HasTryParse
))
310
(parameterType.IsArray && parameter.
HasTryParse
)))
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiDocumentService.cs (2)
605
.
HasTryParse
== false;
756
var hasTryParse = bindingMetadata?.
HasTryParse
== true && parameterType is not null && !parameterType.IsEnum;