You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/libraries/Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingSourceGenerator.Emitter.cs
Copy file name to clipboardExpand all lines: src/libraries/Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingSourceGenerator.Helpers.cs
+42-15Lines changed: 42 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -34,17 +34,32 @@ public sealed partial class ConfigurationBindingSourceGenerator
34
34
defaultSeverity:DiagnosticSeverity.Error,
35
35
isEnabledByDefault:true);
36
36
37
-
// Unlike sourcegen warnings, exception messages should not be localized so we keep them in source.
37
+
// Runtime exception messages; not localized so we keep them in source.
38
38
privatestaticclassExceptionMessages
39
39
{
40
40
publicconststringTypeNotSupported="Unable to bind to type '{0}': '{1}'";
41
+
publicconststringFailedBinding="Failed to convert configuration value at '{0}' to type '{1}'.";
42
+
}
43
+
44
+
privatestaticclassNotSupportedReason
45
+
{
46
+
publicconststringAbstractOrInterfaceNotSupported="Abstract or interface types are not supported";
47
+
publicconststringNeedPublicParameterlessConstructor="Only objects with public parameterless ctors are supported";
48
+
publicconststringCollectionNotSupported="The collection type is not supported";
49
+
publicconststringDictionaryKeyNotSupported="The dictionary key type is not supported";
50
+
publicconststringElementTypeNotSupported="The collection element type is not supported";
51
+
publicconststringMultiDimArraysNotSupported="Multidimensional arrays are not supported.";
52
+
publicconststringNullableUnderlyingTypeNotSupported="Nullable underlying type is not supported";
53
+
publicconststringTypeNotDetectedAsInput="Generator parser did not detect the type as input";
54
+
publicconststringTypeNotSupported="The type is not supported";
0 commit comments