PklCSharp.Microsoft.Extensions.Configuration
0.2.0
dotnet add package PklCSharp.Microsoft.Extensions.Configuration --version 0.2.0
NuGet\Install-Package PklCSharp.Microsoft.Extensions.Configuration -Version 0.2.0
<PackageReference Include="PklCSharp.Microsoft.Extensions.Configuration" Version="0.2.0" />
<PackageVersion Include="PklCSharp.Microsoft.Extensions.Configuration" Version="0.2.0" />
<PackageReference Include="PklCSharp.Microsoft.Extensions.Configuration" />
paket add PklCSharp.Microsoft.Extensions.Configuration --version 0.2.0
#r "nuget: PklCSharp.Microsoft.Extensions.Configuration, 0.2.0"
#:package PklCSharp.Microsoft.Extensions.Configuration@0.2.0
#addin nuget:?package=PklCSharp.Microsoft.Extensions.Configuration&version=0.2.0
#tool nuget:?package=PklCSharp.Microsoft.Extensions.Configuration&version=0.2.0
Pkl C#
Pkl — pronounced Pickle — is an embeddable configuration language which provides rich support for data templating and validation.
These packages are C# bindings to pkl to provide a native way to interact with pkl files.
Type mappings
The below table describes how Pkl types are mapped into C# types.
Pkl type | C# type |
---|---|
Null | null |
Boolean | bool |
String | string |
Int | long |
Int8 | sbyte |
Int16 | short |
Int32 | int |
UInt | ulong |
UInt8 | byte |
UInt16 | ushort |
UInt32 | uint |
Float | float |
Number | double |
List<T> | T[] |
Listing<T> | T[] |
Map<K, V> | Dictionary<K, V> |
Mapping<K, V> | Dictionary<K, V> |
Set<T> | HashSet<T> |
Pair<A, B> | (A, B) |
Dynamic | dynamic |
DataSize | Pkl.PklTypes.DataSize |
Duration | Pkl.PklTypes.Duration |
IntSeq | Pkl.PklTypes.IntSeq |
Class | Pkl.PklTypes.Class [1] |
TypeAlias | Pkl.PklTypes.TypeAlias [1] |
Any | dynamic |
Unions (A|B|C) | dynamic [2] |
Regex | Regex |
[1]
Pkl.PklTypes.Class
andPkl.PklTypes.TypeAlias
only exist for compatibilty purposes because they are possible Pkl runtime values.
[2] If all types within a union are mapped to the same C# type, it can be decoded to that specific type instead of
dynamic
. For example, a union of"error" | "warning"
can be decoded tostring
, whereas a union ofString | Int
would need to be decoded todynamic
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- PklCsharp (>= 0.2.0)
-
net7.0
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- PklCsharp (>= 0.2.0)
-
net8.0
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- PklCsharp (>= 0.2.0)
-
net9.0
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- PklCsharp (>= 0.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.