NTDLS.Persistence
1.3.1
dotnet add package NTDLS.Persistence --version 1.3.1
NuGet\Install-Package NTDLS.Persistence -Version 1.3.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="NTDLS.Persistence" Version="1.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NTDLS.Persistence" Version="1.3.1" />
<PackageReference Include="NTDLS.Persistence" />
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 NTDLS.Persistence --version 1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NTDLS.Persistence, 1.3.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.
#:package NTDLS.Persistence@1.3.1
#: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=NTDLS.Persistence&version=1.3.1
#tool nuget:?package=NTDLS.Persistence&version=1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NTDLS.Persistence
📦 Be sure to check out the NuGet pacakge: https://www.nuget.org/packages/NTDLS.Persistence
Helpers for reading and writing serialized objects to/from files. Helpful for configuration files.
class UIPreferences
{
public string Username { get; set; } = string.Empty;
public bool RememberPassword { get; set; }
}
static void Main(string[] args)
{
//Example of saving preferences:
var preferences = new UIPreferences()
{
Username = "JPatterson",
RememberPassword = false
};
//The file will be given the name of the class type and the given program
// name and will be stored in the common programs data directory.
CommonApplicationData.SaveToDisk("MyProgramName", preferences);
//Exmaple loading preferences:
var loadedPreferences = CommonApplicationData.LoadFromDisk<UIPreferences>("MyProgramName");
}
| 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 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 is compatible. 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.
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
-
net9.0
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on NTDLS.Persistence:
| Package | Downloads |
|---|---|
|
Ae.Engine
Axis Engine is a 2D game engine written in C# and rendered with DirectX. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Dependency updates and introduced .net 10 support.