9 references to IConfigurationSection
Microsoft.Extensions.Configuration.Binder.SourceGeneration (9)
Emitter\CoreBindingHelpers.cs (8)
166
if ({{Identifier.configuration}} is not {{Identifier.
IConfigurationSection
}} {{Identifier.section}})
184
_writer.WriteLine($@"{Identifier.
IConfigurationSection
} {Identifier.section} = {GetSectionFromConfigurationExpression(Identifier.key, addQuotes: false)};");
503
{{Identifier.value}} = {{Identifier.key}} != null ? {{Identifier.configuration}}[{{Identifier.key}}] : {{Identifier.configuration}} is {{Identifier.
IConfigurationSection
}} sec ? sec.Value : null;
523
foreach ({{Identifier.
IConfigurationSection
}} {{Identifier.section}} in {{Identifier.configuration}}.{{Identifier.GetChildren}}())
545
if (({{Identifier.configuration}} as {{Identifier.
IConfigurationSection
}})?.{{Identifier.Value}} is not null)
559
foreach ({{Identifier.
IConfigurationSection
}} _ in {{Identifier.configuration}}.{{Identifier.GetChildren}}())
976
EmitStartBlock($"if ({sectionValidationCall} is {Identifier.
IConfigurationSection
} {sectionIdentifier})");
1349
EmitStartBlock($"foreach ({Identifier.
IConfigurationSection
} {Identifier.section} in {Identifier.configuration}.{Identifier.GetChildren}())");
Emitter\Helpers.cs (1)
116
public const string IConfigurationSection = nameof(
IConfigurationSection
);