v1.1.43
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
-
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 fromNameValueCollection
instances - eg.TryGetBoolean
,TruGetGuid
,TryGetInt32
and similar. -
Added additional extension methods for
DateTime
andDateTimeOffset
(see 7311284)
TheIsToday
,IsTomorrow
andIsYesterday
extension methods are now available for bothDateTime
andDateTimeOffset
. -
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 evenP1Y2M10DT2H30M
. Static methods for converting back and forth between this format andTimeSpan
are now available in theIso8601Utils
class. -
Introduced new extension methods for
JObject
andJArray
(see 8e75a29, 24ded82 and 6034cfa)
Skybrud.Essentials have had similar extension methods in theSkybrud.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 theSkybrud.Essentials.Json.Newtonsoft.Extensions
namespace. The old extension methods still exist, but will likely be marked as obsolete in a future release.