Use STJ in the demo instead of Newtonsoft.Json

This commit is contained in:
Tyrrrz
2023-02-20 03:40:51 +02:00
parent 31ae0271b9
commit dc20fe9730
6 changed files with 9 additions and 53 deletions

View File

@@ -2,21 +2,4 @@
namespace CliFx.Demo.Domain;
public class Book
{
public string Title { get; }
public string Author { get; }
public DateTimeOffset Published { get; }
public Isbn Isbn { get; }
public Book(string title, string author, DateTimeOffset published, Isbn isbn)
{
Title = title;
Author = author;
Published = published;
Isbn = isbn;
}
}
public record Book(string Title, string Author, DateTimeOffset Published, Isbn Isbn);