RedCorners.Components.ObjectStorage 5.2.0

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

Install-Package RedCorners.Components.ObjectStorage -Version 5.2.0
dotnet add package RedCorners.Components.ObjectStorage --version 5.2.0
<PackageReference Include="RedCorners.Components.ObjectStorage" Version="5.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RedCorners.Components.ObjectStorage --version 5.2.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/saeedafshari/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}");
	}
}

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/saeedafshari/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}");
	}
}

Release Notes

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

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
5.2.0 49 7/7/2019
4.11.1 51 6/22/2019
4.11.0 44 6/20/2019