unused
This commit is contained in:
parent
6b076a7538
commit
3558e3057f
1 changed files with 0 additions and 32 deletions
|
@ -1,32 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Bücherwurm
|
||||
{
|
||||
public class BookIdConvert : JsonConverter<int>
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue