From 3558e3057fbea8564a674f9b6254e96b8569743d Mon Sep 17 00:00:00 2001 From: nek0 Date: Mon, 27 Apr 2020 14:45:15 +0200 Subject: [PATCH] unused --- BookImport.cs | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 BookImport.cs diff --git a/BookImport.cs b/BookImport.cs deleted file mode 100644 index 11db169..0000000 --- a/BookImport.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Collections.Generic; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Bücherwurm -{ - public class BookIdConvert : JsonConverter - { - public int NextId {get; set;} - - public override int Read(ref Utf8JsonReader reader, - System.Type typeToConvert, - JsonSerializerOptions options) - { - var ret = this.NextId; - this.NextId = this.NextId++; - return ret; - } - - public override void Write(Utf8JsonWriter writer, - int value, - JsonSerializerOptions options) - { - - } - - public BookIdConvert(int InitId) - { - NextId = InitId; - } - } -} \ No newline at end of file