Skip to content

PrimeFuncPack Core.Unit v4.0.0

Choose a tag to compare

@andreise andreise released this 25 Nov 18:56
· 13 commits to main since this release
851356f

PrimeFuncPack Core.Unit v4.0.0:

.NET targeting:

  • Targeted to net10.0 and 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 redundant IFormatProvider parameter:
    -- 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 new Format

Deleting legacy (breaking changes):

  • Deleted non-generic IComparable implementation