1 instantiation of ObjectSpec
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
ConfigurationBindingGenerator.Parser.cs (1)
795
return new
ObjectSpec
(
21 references to ObjectSpec
Microsoft.Extensions.Configuration.Binder.SourceGeneration (21)
ConfigurationBindingGenerator.Parser.cs (1)
639
private
ObjectSpec
CreateObjectSpec(TypeParseInfo typeParseInfo)
Emitter\CoreBindingHelpers.cs (13)
49
if (type is not
ObjectSpec
objectType)
142
else if (type is
ObjectSpec
{ InitExceptionMessage: string exMsg })
284
case
ObjectSpec
objectType:
301
if (_bindingHelperInfo.TypesForGen_Initialize is not ImmutableEquatableArray<
ObjectSpec
> types)
306
foreach (
ObjectSpec
type in types)
313
private void EmitInitializeMethod(
ObjectSpec
type)
854
private void EmitBindCoreImplForObject(
ObjectSpec
type)
964
((
ObjectSpec
)complexType).InstantiationStrategy == ObjectInstantiationStrategy.ParameterizedConstructor)
1103
else if (type is
ObjectSpec
{ InitExceptionMessage: string exMsg })
1147
if (type is
ObjectSpec
{ InitExceptionMessage: string exMsg })
1210
ObjectSpec
? objectType = type as
ObjectSpec
;
1250
string initMethodIdentifier = GetInitializeMethodDisplayString(((
ObjectSpec
)type));
Emitter\Helpers.cs (1)
276
private static string GetInitializeMethodDisplayString(
ObjectSpec
type) =>
Specs\BindingHelperInfo.cs (3)
22
public required ImmutableEquatableArray<
ObjectSpec
>? TypesForGen_Initialize { get; init; }
55
TypesForGen_Initialize = GetTypesForGen_CoreBindingHelper<
ObjectSpec
>(MethodsToGen_CoreBindingHelper.Initialize),
162
case
ObjectSpec
objectSpec:
Specs\TypeIndex.cs (3)
25
ObjectSpec
objectSpec => objectSpec is { InstantiationStrategy: not ObjectInstantiationStrategy.None, InitExceptionMessage: null },
34
ObjectSpec
objectSpec => objectSpec.Properties?.Any(ShouldBindTo) is true,
111
public static string GetConfigKeyCacheFieldName(
ObjectSpec
type) => $"s_configKeys_{type.IdentifierCompatibleSubstring}";