Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about microsoft.extensions.configuration

Read more about microsoft.extensions.configuration

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - microsoft.extensions.configuration

How to read array configuration sections with binding?

How can I read an array of configuration values using Microsoft.Extensions.Configuration with binding? For example, given the following XML configuration: <root> <eventConfiguration> ...
test-img

MiGro

c#

.net

configuration

.net-4.7.2

microsoft.extensions.configuration

Votes: 0

Answers: 1

Latest Answer

The solution is to add ConfigurationKeyNameAttribute to the Events property as your XML element's name is event not events. public class EventConfiguration { [ConfigurationKeyName(nameof(Event))] ...
test-img

Gabor

Newtonsoft.Json as configuration provider in ASP.NET (5+)

For better or worse our codebase relies heavily on Newtonsoft.Json. There are various type converters etc. based on this framework and it is simply not worth the effort to rewrite them using some othe...
test-img

jool

json

.net

asp.net-core

json.net

microsoft.extensions.configuration

Votes: 0

Answers: 0

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved