@@ -21,7 +21,8 @@ namespace Npgsql.Internal.TypeHandlers.NetworkHandlers;
2121/// should be considered somewhat unstable, and may change in breaking ways, including in non-major releases.
2222/// Use it at your own risk.
2323/// </remarks>
24- public partial class InetHandler : NpgsqlSimpleTypeHandlerWithPsv < IPAddress , ( IPAddress Address , int Subnet ) > ,
24+ public partial class InetHandler : NpgsqlSimpleTypeHandler < IPAddress > ,
25+ INpgsqlSimpleTypeHandler < ( IPAddress Address , int Subnet ) > ,
2526 INpgsqlSimpleTypeHandler < NpgsqlInet >
2627{
2728 // ReSharper disable InconsistentNaming
@@ -58,7 +59,8 @@ internal static (IPAddress Address, int Subnet) DoRead(
5859#pragma warning restore CA1801 // Review unused parameters
5960
6061 /// <inheritdoc />
61- protected override ( IPAddress Address , int Subnet ) ReadPsv ( NpgsqlReadBuffer buf , int len , FieldDescription ? fieldDescription = null )
62+ ( IPAddress Address , int Subnet ) INpgsqlSimpleTypeHandler < ( IPAddress Address , int Subnet ) > . Read (
63+ NpgsqlReadBuffer buf , int len , FieldDescription ? fieldDescription )
6264 => DoRead ( buf , len , fieldDescription , false ) ;
6365
6466 NpgsqlInet INpgsqlSimpleTypeHandler < NpgsqlInet > . Read ( NpgsqlReadBuffer buf , int len , FieldDescription ? fieldDescription )
@@ -76,7 +78,7 @@ public override int ValidateAndGetLength(IPAddress value, NpgsqlParameter? param
7678 => GetLength ( value ) ;
7779
7880 /// <inheritdoc />
79- public override int ValidateAndGetLength ( ( IPAddress Address , int Subnet ) value , NpgsqlParameter ? parameter )
81+ public int ValidateAndGetLength ( ( IPAddress Address , int Subnet ) value , NpgsqlParameter ? parameter )
8082 => GetLength ( value . Address ) ;
8183
8284 /// <inheritdoc />
@@ -88,7 +90,7 @@ public override void Write(IPAddress value, NpgsqlWriteBuffer buf, NpgsqlParamet
8890 => DoWrite ( value , - 1 , buf , false ) ;
8991
9092 /// <inheritdoc />
91- public override void Write ( ( IPAddress Address , int Subnet ) value , NpgsqlWriteBuffer buf , NpgsqlParameter ? parameter )
93+ public void Write ( ( IPAddress Address , int Subnet ) value , NpgsqlWriteBuffer buf , NpgsqlParameter ? parameter )
9294 => DoWrite ( value . Address , value . Subnet , buf , false ) ;
9395
9496 /// <inheritdoc />
0 commit comments