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