コード例 #1
0
 public override BigInteger Read(
     ref Utf8JsonReader reader,
     Type typeToConvert,
     JsonSerializerOptions options) => DataTypeConverter.HexStringToBigint(reader.GetString());
コード例 #2
0
 public override void Write(
     Utf8JsonWriter writer,
     BigInteger intVal,
     JsonSerializerOptions options) =>
 writer.WriteStringValue(DataTypeConverter.BigIntToPrefixedHex(intVal));