BogaNet.Prefs 0.9.1

dotnet add package BogaNet.Prefs --version 0.9.1
NuGet\Install-Package BogaNet.Prefs -Version 0.9.1
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="BogaNet.Prefs" Version="0.9.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BogaNet.Prefs --version 0.9.1
#r "nuget: BogaNet.Prefs, 0.9.1"
#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 BogaNet.Prefs as a Cake Addin
#addin nuget:?package=BogaNet.Prefs&version=0.9.1

// Install BogaNet.Prefs as a Cake Tool
#tool nuget:?package=BogaNet.Prefs&version=0.9.1

BogaNet.Prefs

Handles preferences/settings for C# applications. It supports all values types, strings, DateTime and object. Furthermore, it allows to store the data in obfuscated form to prevent it from being easily read. The data is automatically stored at application exit.

Main class and example code

string textObf = "Hello obfuscated wörld!";
string keyObf = "textObf";

Preferences.Set(keyObf, textObf, true); //save text in obfuscated form
Console.WriteLine(GetString(keyObf, true));

double number = 12.345;
string keyNumber = "number";

Preferences.Set(keyNumber, number);
Console.WriteLine(Preferences.GetNumber<double>(keyNumber).ToString());

Nuget:

BogaNet.Prefs

API:

https://www.crosstales.com/media/data/BogaNet/api/

GitHub:

https://github.com/slaubenberger/BogaNet/

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.9.1 33 6/28/2024
0.9.0 40 6/26/2024

DateTime handlin improved.