Version 1.3.0

Date 2026-11-23 (7 days ago)
Downloads 129 downloads
NuGet View on NuGet
GitHub View on GitHub
Target Frameworks .NET Standard 2.0 .NET Standard 2.1 .NET 8 .NET 9 .NET 10

Installation

Install via NuGet - either via the .NET CLI:

dotnet add package Skybrud.Essentials --version 1.3.0

or the NuGet Package Manager:

Install-Package Skybrud.Essentials -Version 1.3.0

Changelog

  • Updated the Iso8601Utils.ToString methods to use o as format (see a739753)

    • somewhat matches System.Text.Json
    • always includes ticks (System.Text.Json doesn't include trailing zeros)
    • normalizes the time zone (e.g. +00:00 instead of Z - same as System.Text.Json)
    • added new Iso8601Constants.DateTimeRoundtrip constant with the value yyyy-MM-ddTHH:mm:ss.fffffffK (same as o)
    • added new Iso8601Constants.DateTimeFractionalSeconds constant with the value yyyy-MM-ddTHH:mm:ss.FFFFFFFK (trailing zeros omitted)
    • affects classes like EssentialsTime
    • etc.
  • Updated the Parse and ParseExact methods to not accept null or empty values (see 3cf5400)
    In the old implementation, the methods accepted both null and empty/whitespace values, in which case the methods would return null or the default value. This doesn't match .NET's Parse methods, which instead throws an exception of a relevant type.

    With this commit, the methods will instead throw the following exceptions:

    • null ➡️ ArgumentNullException
    • empty or white space ➡️ ArgumentNullException
    • invalid ➡️ FormatException

    This also introduces the internal Guid class, as we can't use the static methods on ArgumentException since we're still supporting .NET Standard.

  • Added various extensions methods for reading cell values from a DataRow (see 89c5d24)
    Following similar logic in Skybrud.Essentials, the package now contains various Get{Type}, GetRequired{Type} and TryGet{Type} style methods for DaraRow.