[API Proposal]: Implement IUtf8SpanParsable<T>
on Guid
#97378
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
needs-area-label
An area label is needed to ensure this gets routed to the appropriate area owners
Background and motivation
Currently,
Guid
does not implementIUtf8SpanParsable<T>
.It is not uncommon to parse values of such type from UTF-8 bytes sourced from network streams, files and etc. directly, making it a reasonable expectation to be able to do this given it implements
IUtf8SpanFormattable
for the opposite operation.API Proposal
API Usage
Alternative Designs
Use existing
Utf8Parser.TryParse(bytes, out Guid value, out int bytesConsumed)
.Risks
N/A
The text was updated successfully, but these errors were encountered: