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 })
295
case
ObjectSpec
objectType:
312
if (_bindingHelperInfo.TypesForGen_Initialize is not ImmutableEquatableArray<
ObjectSpec
> types)
317
foreach (
ObjectSpec
type in types)
324
private void EmitInitializeMethod(
ObjectSpec
type)
879
private void EmitBindCoreImplForObject(
ObjectSpec
type)
942
type is
ObjectSpec
{ Properties: { } properties } objectType &&
954
private static bool IsBoundInInitialize(
ObjectSpec
type, PropertySpec property) =>
981
complexType is not
ObjectSpec
{ InstantiationStrategy: ObjectInstantiationStrategy.ParameterizedConstructor } ||
1147
effectiveMemberType is
ObjectSpec
{ InstantiationStrategy: ObjectInstantiationStrategy.ParameterizedConstructor } &&
1260
else if (type is
ObjectSpec
{ InitExceptionMessage: string exMsg })
1343
if (type is
ObjectSpec
{ InitExceptionMessage: string exMsg })
1411
ObjectSpec
? objectType = type as
ObjectSpec
;
1451
string initMethodIdentifier = GetInitializeMethodDisplayString(((
ObjectSpec
)type));
Emitter\Helpers.cs (1)
283
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),
172
case
ObjectSpec
objectSpec:
Specs\TypeIndex.cs (3)
25
ObjectSpec
objectSpec => objectSpec is { InstantiationStrategy: not ObjectInstantiationStrategy.None, InitExceptionMessage: null },
40
ObjectSpec
objectSpec => objectSpec.Properties?.Any(ShouldBindTo) is true,
140
public static string GetConfigKeyCacheFieldName(
ObjectSpec
type) => $"s_configKeys_{type.IdentifierCompatibleSubstring}";