14 references to NotSupportedReason
Microsoft.Extensions.Configuration.Binder.SourceGeneration (14)
ConfigurationBindingGenerator.Parser.cs (4)
212
spec = CreateUnsupportedTypeSpec(typeParseInfo,
NotSupportedReason
.UnknownType);
344
return CreateUnsupportedTypeSpec(typeParseInfo,
NotSupportedReason
.MultiDimArraysNotSupported);
804
=> CreateUnsupportedTypeSpec(typeParseInfo,
NotSupportedReason
.CollectionNotSupported);
806
private static UnsupportedTypeSpec CreateUnsupportedTypeSpec(TypeParseInfo typeParseInfo,
NotSupportedReason
reason) =>
Parser\DiagnosticDescriptors.cs (9)
66
public static DiagnosticDescriptor GetNotSupportedDescriptor(
NotSupportedReason
reason) =>
69
NotSupportedReason
.UnknownType => TypeNotSupported,
70
NotSupportedReason
.MissingPublicInstanceConstructor => MissingPublicInstanceConstructor,
71
NotSupportedReason
.CollectionNotSupported => CollectionNotSupported,
72
NotSupportedReason
.DictionaryKeyNotSupported => DictionaryKeyNotSupported,
73
NotSupportedReason
.ElementTypeNotSupported => ElementTypeNotSupported,
74
NotSupportedReason
.MultipleParameterizedConstructors => MultipleParameterizedConstructors,
75
NotSupportedReason
.MultiDimArraysNotSupported => MultiDimArraysNotSupported,
76
NotSupportedReason
.NullableUnderlyingTypeNotSupported => NullableUnderlyingTypeNotSupported,
Specs\Types\TypeSpec.cs (1)
66
public required
NotSupportedReason
NotSupportedReason { get; init; }