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" />
                    
Directory.Packages.props
<PackageReference Include="NTDLS.Persistence" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=NTDLS.Persistence&version=1.3.1
                    
Install as a Cake Tool

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 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.

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.

Version Downloads Last Updated
1.3.1 312 11/14/2025
1.3.0 377 3/4/2025
1.2.3 233 3/2/2025
1.2.2 275 12/31/2024
1.2.1 289 6/20/2024
1.2.0 282 1/22/2024
1.1.0 317 11/23/2023
1.0.2 239 11/20/2023
1.0.1 195 11/15/2023
1.0.0 227 11/3/2023

Dependency updates and introduced .net 10 support.