Extensions.Configuration.Sources.Objects 0.0.2

Functionality to add objects as configuration source for Microsoft.Extensions.Configuration.

Install-Package Extensions.Configuration.Sources.Objects -Version 0.0.2
dotnet add package Extensions.Configuration.Sources.Objects --version 0.0.2
<PackageReference Include="Extensions.Configuration.Sources.Objects" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Extensions.Configuration.Sources.Objects --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Extensions.Configuration.Sources.Objects, 0.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Extensions.Configuration.Sources.Objects as a Cake Addin
#addin nuget:?package=Extensions.Configuration.Sources.Objects&version=0.0.2

// Install Extensions.Configuration.Sources.Objects as a Cake Tool
#tool nuget:?package=Extensions.Configuration.Sources.Objects&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Extensions.Configuration.Sources.Objects

Description

This package adds functionality to Microsoft.Extensions.Configuration, to use objects as configuration source.

Installation

dotnet add package Microsoft.Extensions.Configuration
dotnet add package Extensions.Configuration.Sources.Objects

Usage

using Microsoft.Extensions.Configuration;

var configuration = new ConfigurationBuilder
    .AddObject(new { K1 = "V1" })
    .Build();

var val = configuration["K1"];
// Returns "V1"

Nesting is supported

var configuration = new ConfigurationBuilder
    .AddObject(new { K1 = new { K2 = "V1" } } })
    .Build();

var val = configuration["K1:K2"];
// Returns "V1"

Extensions.Configuration.Sources.Objects

Description

This package adds functionality to Microsoft.Extensions.Configuration, to use objects as configuration source.

Installation

dotnet add package Microsoft.Extensions.Configuration
dotnet add package Extensions.Configuration.Sources.Objects

Usage

using Microsoft.Extensions.Configuration;

var configuration = new ConfigurationBuilder
    .AddObject(new { K1 = "V1" })
    .Build();

var val = configuration["K1"];
// Returns "V1"

Nesting is supported

var configuration = new ConfigurationBuilder
    .AddObject(new { K1 = new { K2 = "V1" } } })
    .Build();

var val = configuration["K1:K2"];
// Returns "V1"

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Extensions.Configuration.Sources.Objects:

Package Downloads
Extensions.Configuration
Adds functionality to Microsoft.Extensions.Configuration.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.2 20,616 4/13/2020
0.0.1 331 4/3/2020