1 instantiation of ObjectSpec
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
ConfigurationBindingGenerator.Parser.cs (1)
831
return new
ObjectSpec
(
24 references to ObjectSpec
Microsoft.Extensions.Configuration.Binder.SourceGeneration (24)
ConfigurationBindingGenerator.Parser.cs (1)
653
private
ObjectSpec
CreateObjectSpec(TypeParseInfo typeParseInfo)
Emitter\CoreBindingHelpers.cs (16)
50
if (type is not
ObjectSpec
objectType)
143
else if (type is
ObjectSpec
{ InitExceptionMessage: string exMsg })
292
case
ObjectSpec
objectType:
309
if (_bindingHelperInfo.TypesForGen_Initialize is not ImmutableEquatableArray<
ObjectSpec
> types)
314
foreach (
ObjectSpec
type in types)
321
private void EmitInitializeMethod(
ObjectSpec
type)
876
private void EmitBindCoreImplForObject(
ObjectSpec
type)
939
type is
ObjectSpec
{ Properties: { } properties } objectType &&
951
private static bool IsBoundInInitialize(
ObjectSpec
type, PropertySpec property) =>
974
complexType is not
ObjectSpec
{ InstantiationStrategy: ObjectInstantiationStrategy.ParameterizedConstructor };
1088
((
ObjectSpec
)complexType).InstantiationStrategy == ObjectInstantiationStrategy.ParameterizedConstructor)
1246
else if (type is
ObjectSpec
{ InitExceptionMessage: string exMsg })
1329
if (type is
ObjectSpec
{ InitExceptionMessage: string exMsg })
1393
ObjectSpec
? objectType = type as
ObjectSpec
;
1433
string initMethodIdentifier = GetInitializeMethodDisplayString(((
ObjectSpec
)type));
Emitter\Helpers.cs (1)
279
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,
116
public static string GetConfigKeyCacheFieldName(
ObjectSpec
type) => $"s_configKeys_{type.IdentifierCompatibleSubstring}";