C1rdec / AppData-Lurker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install

Install-Package Lurker.AppData

Usage

var file = new FileExample();
file.Initialize();

Definitions

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; }
}

Result

image

About

License:MIT License


Languages

Language:C# 100.0%