Install-Package Lurker.AppData
var file = new FileExample();
file.Initialize();
public class FileExample : AppDataFileBase<ModelExample>
{
/// <summary>
/// The name of the saved file.
/// </summary>
protected override string FileName => "Example.json";
/// <summary>
/// The name of the root folder in the AppData.
/// </summary>
protected override string FolderName => "Example";
/// <summary>
/// *Optional* The name of the sub folder.
/// </summary>
protected override string SubFolderName => "SubFolder";
}
public class ModelExample
{
public int Value { get; set; }
}