dev_0.2 #4

Merged
Sakurai merged 2 commits from dev_0.2 into master 2024-08-12 12:53:20 +09:00
Showing only changes of commit d9e3e7bf3b - Show all commits

View File

@ -29,6 +29,9 @@ public class LocalStore<T> : IStore<T>
using (FileStream fs = new FileStream(this.filePath, FileMode.OpenOrCreate))
using (StreamWriter writer = new StreamWriter(fs, DefaultEncoding))
{
fs.Seek(0, SeekOrigin.Begin);
fs.SetLength(0);
foreach (T item in this.items)
{
string json = JsonSerializer.Serialize<T>(item);