RedCorners.Components.ObjectStorage 8.6.0

Install-Package RedCorners.Components.ObjectStorage -Version 8.6.0
dotnet add package RedCorners.Components.ObjectStorage --version 8.6.0
<PackageReference Include="RedCorners.Components.ObjectStorage" Version="8.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RedCorners.Components.ObjectStorage --version 8.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RedCorners.Components.ObjectStorage, 8.6.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install RedCorners.Components.ObjectStorage as a Cake Addin
#addin nuget:?package=RedCorners.Components.ObjectStorage&version=8.6.0

// Install RedCorners.Components.ObjectStorage as a Cake Tool
#tool nuget:?package=RedCorners.Components.ObjectStorage&version=8.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

RedCorners.Components.ObjectStorage enables easy cross-platform storage of settings as JSON in C#.

NuGet: https://www.nuget.org/packages/RedCorners.Components.ObjectStorage GitHub: https://github.com/samafshari/RedCorners.Components.ObjectStorage

Dependencies

RedCorners depends on Newtonsoft.Json for JSON serialization and deserialization.

Example

using System;
using System.Collections.Generic;
using RedCorners.Components;

class Program
{
	public class Settings
	{
		public int Count { get; set; }
	}

	static void Main(string[] args)
	{
		var settings = new ObjectStorage<Settings>();
		
		// First time it's 0, and every time you run the app it gets increased by 1.
		Console.WriteLine($"Default Count: {settings.Data.Count}");

		settings.Data.Count++;
		settings.Save();

		Console.WriteLine($"New Count: {settings.Data.Count}");
	}
}

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
8.6.0 402 12/9/2020
6.5.0 487 12/18/2019
6.4.0 239 12/18/2019
5.3.0 294 9/12/2019
5.2.0 334 7/7/2019
4.11.1 291 6/22/2019
4.11.0 264 6/20/2019

Easy cross-platform storage of settings as JSON in C#.