Repository navigation
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.ToStringmethods to useoas 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:00instead ofZ- same as System.Text.Json) - added new
Iso8601Constants.DateTimeRoundtripconstant with the valueyyyy-MM-ddTHH:mm:ss.fffffffK(same aso) - added new
Iso8601Constants.DateTimeFractionalSecondsconstant with the valueyyyy-MM-ddTHH:mm:ss.FFFFFFFK(trailing zeros omitted) - affects classes like
EssentialsTime - etc.
-
Updated the
ParseandParseExactmethods 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'sParsemethods, 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
Guidclass, as we can't use the static methods onArgumentExceptionsince 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 variousGet{Type},GetRequired{Type}andTryGet{Type}style methods forDaraRow.