PrimeFuncPack Core.Unit v4.0.0
PrimeFuncPack Core.Unit v4.0.0:
.NET targeting:
- Targeted to
net10.0and above only
Actual .NET infrastructure methods for primitive types:
- Added explicit implementation of
IFormattable/ISpanFormattable/IUtf8SpanFormattable - Added explicit implementation of
IParsable<Unit>/ISpanParsable<Unit>/IUtf8SpanParsable<Unit> - Added Unit formatting methods similar to
IFormattable/ISpanFormattable/IUtf8SpanFormattable, without redundantIFormatProviderparameter:
--string Format(ReadOnlySpan<char> format)
--byte[] FormatToUtf8(ReadOnlySpan<char> format)
--bool TryFormat(Span<char> destination, ...
--bool TryFormat(Span<byte> utf8Destination, ...
--string ToString(string? format), special obsolete suggesting to use the newFormat
Deleting legacy (breaking changes):
- Deleted non-generic IComparable implementation