11 references to Parsability
Microsoft.AspNetCore.Http.RequestDelegateGenerator (11)
src\Shared\RoslynUtils\ParsabilityHelper.cs (10)
21
private static readonly BoundedCacheWithFactory<ITypeSymbol, (
Parsability
, ParsabilityMethod?)> ParsabilityCache = new();
50
internal static
Parsability
GetParsability(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes)
55
internal static
Parsability
GetParsability(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, [NotNullWhen(false)] out ParsabilityMethod? parsabilityMethod)
57
var
parsability =
Parsability
.NotParsable;
64
return (
Parsability
.Parsable, parsabilityMethod);
70
return (
Parsability
.Parsable, ParsabilityMethod.IParsable);
80
return (
Parsability
.Parsable, ParsabilityMethod.TryParseWithFormatProvider);
85
return (
Parsability
.Parsable, ParsabilityMethod.TryParse);
88
return (
Parsability
.NotParsable, null);
StaticRouteHandlerModel\EndpointParameter.cs (1)
332
if (ParsabilityHelper.GetParsability(parameterType, wellKnownTypes, out var parsabilityMethod) !=
Parsability
.Parsable)