Version 1.1.43

Date 2022-11-01 (745 days ago)
Downloads 42K downloads
NuGet View on NuGet
GitHub View on GitHub
Target Frameworks .NET Standard 1.1 .NET Standard 1.3 .NET Standard 2.0 .NET 4.5 .NET 4.6 .NET 4.7 .NET 4.8 .NET 5 .NET 6

#installation">Installation

Install the NuGet package - either via the .NET CLI:

dotnet add package Skybrud.Essentials --version 1.1.43

or the NuGet package manager:

Install-Package Skybrud.Essentials -Version 1.1.43

#changelog">Changelog

  • Added support for nullable reference types (see b25e281, acbee18)
    This includes adding .NET 5 and .NET 6 as additional target frameworks, as they come with extended code analysis functionality out of the box. The Nullable package is added a development dependency to older target frameworks to provide the same code analysis functionality.

  • Added additional extension methods for NameValueCollection (see f0fb6bf)
    The .NET Framework versions of this package now features a number of new extension method for reading from NameValueCollection instances - eg. TryGetBoolean, TruGetGuid, TryGetInt32 and similar.

  • Added additional extension methods for DateTime and DateTimeOffset (see 7311284)
    The IsToday, IsTomorrow and IsYesterday extension methods are now available for both DateTime and DateTimeOffset.

  • Added static utility methods for working with ISO 8601 durations (see 0cd5538)
    The ISO 8601 standard also describes a way to specify durations - eg. PT30M or even P1Y2M10DT2H30M. Static methods for converting back and forth between this format and TimeSpan are now available in the Iso8601Utils class.

  • Introduced new extension methods for JObject and JArray (see 8e75a29, 24ded82 and 6034cfa)
    Skybrud.Essentials have had similar extension methods in the Skybrud.Essentials.Json.Extensions namespace for a while now, but the new extension methods are added to clean up the implementation and indicate that they are specifically for Newtonsoft.Json, and they are therefore located in the Skybrud.Essentials.Json.Newtonsoft.Extensions namespace. The old extension methods still exist, but will likely be marked as obsolete in a future release.