.kanbn
.vscode
Helpers
Models
Binder
AppSettings.cs
Birth.cs
Change.cs
Death.cs
LineNumber.cs
MarkdownFile.cs
Name.cs
PackageJson.cs
Person.cs
Server-Management
.editorconfig
.gitignore
.prettierignore
File-Folder-Helper.csproj
Program.cs
README.md
Worker.cs
package-lock.json
package.json
23 lines
628 B
C#
23 lines
628 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace File_Folder_Helper.Models;
|
|
|
|
public record Change(DateOnly? Date,
|
|
string? Note,
|
|
List<string> Continue)
|
|
{
|
|
|
|
public override string ToString()
|
|
{
|
|
string result = JsonSerializer.Serialize(this, ChangeSourceGenerationContext.Default.Change);
|
|
return result;
|
|
}
|
|
|
|
}
|
|
|
|
[JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)]
|
|
[JsonSerializable(typeof(Change))]
|
|
internal partial class ChangeSourceGenerationContext : JsonSerializerContext
|
|
{
|
|
} |