Now that we are on .NET 7, we can introduce a IHParsable (Yes, that is the "correct" spelling, same as BCL) interface that uses the static abstract members in interfaces feature. This interface introduces a generic mechanism for parsing types from their binary representation, given their on the protocol format.
This interface mirrors IHFormattable, like the ISpanParsable mirrors ISpanFormattable in the BCL.
Now that we are on .NET 7, we can introduce a
IHParsable
(Yes, that is the "correct" spelling, same as BCL) interface that uses the static abstract members in interfaces feature. This interface introduces a generic mechanism for parsing types from their binary representation, given their on the protocol format.This interface mirrors
IHFormattable
, like theISpanParsable
mirrorsISpanFormattable
in the BCL.