BogaNet.Prefs
1.4.0
dotnet add package BogaNet.Prefs --version 1.4.0
NuGet\Install-Package BogaNet.Prefs -Version 1.4.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="BogaNet.Prefs" Version="1.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BogaNet.Prefs" Version="1.4.0" />
<PackageReference Include="BogaNet.Prefs" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BogaNet.Prefs --version 1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BogaNet.Prefs, 1.4.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.
#:package BogaNet.Prefs@1.4.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BogaNet.Prefs&version=1.4.0
#tool nuget:?package=BogaNet.Prefs&version=1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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/modified. The data is automatically stored at application exit.
Main class and example code
- Preferences: Preferences for the application.
string textObf = "Hello obfuscated wörld!";
string keyObf = "textObf";
Preferences.Instance.Set(keyObf, textObf, true); //save text in obfuscated form
Console.WriteLine(Preferences.Instance.GetString(keyObf, true));
double number = 12.345;
string keyNumber = "number";
Preferences.Instance.Set(keyNumber, number);
Console.WriteLine(Preferences.Instance.GetNumber<double>(keyNumber).ToString());
Nuget:
API:
https://www.crosstales.com/media/data/BogaNet/api/
GitHub:
| Product | Versions 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. net9.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- BogaNet.Common (>= 1.4.0)
- BogaNet.Encoder (>= 1.4.0)
- BogaNet.ObfuscatedType (>= 1.4.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BogaNet.Prefs:
| Package | Downloads |
|---|---|
|
BogaNet.Avalonia.Browser
Browser-specific helpers for Avalonia development. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.0 | 234 | 8/5/2024 |
| 1.3.2 | 178 | 7/30/2024 |
| 1.3.1 | 190 | 7/27/2024 |
| 1.3.0 | 184 | 7/26/2024 |
| 1.2.7 | 183 | 7/25/2024 |
| 1.2.6 | 178 | 7/25/2024 |
| 1.2.5 | 208 | 7/25/2024 |
| 1.2.4 | 215 | 7/25/2024 |
| 1.2.3 | 196 | 7/22/2024 |
| 1.2.2 | 211 | 7/21/2024 |
| 1.2.0 | 184 | 7/12/2024 |
| 1.1.2 | 202 | 7/2/2024 |
| 1.1.1 | 207 | 7/1/2024 |
| 1.1.0 | 217 | 7/1/2024 |
| 0.9.1 | 204 | 6/28/2024 |
| 0.9.0 | 222 | 6/26/2024 |
Release Common 1.4.0.