am1goo.Ston.Net
1.0.0
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 2.0
This package targets .NET Core 2.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
Suggested Alternatives
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package am1goo.Ston.Net --version 1.0.0
NuGet\Install-Package am1goo.Ston.Net -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="am1goo.Ston.Net" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add am1goo.Ston.Net --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: am1goo.Ston.Net, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install am1goo.Ston.Net as a Cake Addin
#addin nuget:?package=am1goo.Ston.Net&version=1.0.0
// Install am1goo.Ston.Net as a Cake Tool
#tool nuget:?package=am1goo.Ston.Net&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ston.Net
STON (Strong Typed Object Notation) - another way to make a deal with configuration files.
It's easy to use and give to you unlimited power to control every field or property in your file.
Syntax
Parameter key and his type shoud be separate by colon symbol :
.
Value should be next after equals sign =
. \
- Primitive and custom types, also enums:
{param name}:{type} = {value}
- Arrays:
{array name} = [ .. any values between brackets .. ]
- Objects:
{object name} = { .. any properties between braces .. }
Built-in primitive types:
b
- booleanbt
- bytesbt
- signed bytes
- short (int16)us
- unsigned short (uint16)i
- integer (int32)ui
- unsigned integer (uint32)l
- long (int64)ul
- unsigned long (uint64)f
- single aka floatd
- doubledec
- decimalt
- stringe
- enumsurl
- path to external file
File format
#this is a comment
#b - means "boolean" and can be one of case-insensitives values 'yes' or '1' or 'tRuE' or 'no' or '0' or 'fAlSe'
param_1:b = yes
#i - means "integer"
param_2:i = -123
#f - means "float"
param_3:f = 32.32
#t - means "text" or "string"
param_4:t = this is a single line
param_5:t = "and this is a multi line
also called \"The King of Strings\".
It's not a joke!"
#objects should be mapped w/o any type
obj_1 = {
field_1:t = "I'm a first field"
field_2:s = 123
field_3 = {
arg_1:i = 123
arg_2:sbt = 4
}
}
#arrays should be mapped w/o any type as well
#also all array values can no have names
array_1 = [
:t = "first element"
:t = second element
:t = 3rd element
]
#any inline objects should be mapped via type 'url'
obj = {
internal:url = file:///home/user/internal.ston
external:url = http://youhostname.domain/files/external.ston
}
Features
- All types of primitive types
- Enum deserialization from strings or numbers
- Single-line and multi-line strings
- Ability to inline any amount of inherit files (from local files or web servers)
- Customization of deserialization process (you can add support to any your custom types!)
Known limitations
- Currently only deserialization is supported.
Requirements
- .NET Core App 2.0 or higher
- .NET Standard 2.1 or higher
- .NET Core 5.0 and higher
Contribute
Contribution in any form is very welcome. Bugs, feature requests or feedback can be reported in form of Issues.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. 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. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 is compatible. netcoreapp2.2 is compatible. netcoreapp3.0 is compatible. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.0
- No dependencies.
-
.NETCoreApp 2.1
- No dependencies.
-
.NETCoreApp 2.2
- No dependencies.
-
.NETCoreApp 3.0
- No dependencies.
-
.NETCoreApp 3.1
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|