9 references to ParsabilityMethod
Microsoft.AspNetCore.App.Analyzers (9)
src\Shared\RoslynUtils\ParsabilityHelper.cs (9)
21
private static readonly BoundedCacheWithFactory<ITypeSymbol, (Parsability,
ParsabilityMethod
?)> ParsabilityCache = new();
23
private static bool IsTypeAlwaysParsable(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, [NotNullWhen(true)] out
ParsabilityMethod
? parsabilityMethod)
28
parsabilityMethod =
ParsabilityMethod
.Enum;
35
parsabilityMethod =
ParsabilityMethod
.Uri;
42
parsabilityMethod =
ParsabilityMethod
.String;
55
internal static Parsability GetParsability(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, [NotNullWhen(false)] out
ParsabilityMethod
? parsabilityMethod)
70
return (Parsability.Parsable,
ParsabilityMethod
.IParsable);
80
return (Parsability.Parsable,
ParsabilityMethod
.TryParseWithFormatProvider);
85
return (Parsability.Parsable,
ParsabilityMethod
.TryParse);