ArachisH / Sulakore

Habbo SDK
14 stars 4 forks source link

Introduce IHParsable #50

Closed PaulusParssinen closed 1 year ago

PaulusParssinen commented 1 year ago

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.