Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Introduce IHParsable #50

Merged

Conversation

PaulusParssinen
Copy link
Collaborator

@PaulusParssinen PaulusParssinen commented Jun 9, 2023

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.

@ArachisH ArachisH merged commit d142990 into ArachisH:main Jun 9, 2023
1 check passed
@PaulusParssinen PaulusParssinen deleted the static-abstract-interface-members branch June 9, 2023 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants