Exemplo n.º 1
0
 public override BigInteger Read(
     ref Utf8JsonReader reader,
     Type typeToConvert,
     JsonSerializerOptions options) => DataTypeConverter.HexStringToBigint(reader.GetString());
Exemplo n.º 2
0
 public override void Write(
     Utf8JsonWriter writer,
     BigInteger intVal,
     JsonSerializerOptions options) =>
 writer.WriteStringValue(DataTypeConverter.BigIntToPrefixedHex(intVal));