Version 1.1.49

Date 2023-06-02 (532 days ago)
Downloads 4,935 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 via NuGet - either via the .NET CLI:

dotnet add package Skybrud.Essentials --version 1.1.49

or the NuGet package manager:

Install-Package Skybrud.Essentials -Version 1.1.49

#changelog">Changelog

  • Updated nullable annotations for the StringUtils.FirstWithValue methods (see #43 and 7ccd11d)
    Two of the FirstWithValue method overloads supports specifying an array or a collection of string values respectively. The nullable annotations allowed the arrays/collections to be null, but not the individual values. As if this release, both are now allowed to be null.

  • Added [NotNullIfNotNull("value")] attributes to the first out parameter of StringExtensions.Split methods (see 70a0ef9)
    Since splitting a string always results in an array with at least one item, the first out parameter is known to be not null if value is not null.

  • Copied JSON converters to the Newtonsoft namespace (see ede5e46)
    Two differentiate between Newtonsoft.Json and System.Text.Json, the existing JSON converters have been copied to the Skybrud.Essentials.Json.Newtonsoft.Converters namespace. The JSON converters are copied rather than moved since that would be a breaking change. The existing JSON converters are instead marked as obsolete.

  • Added various utility and extension methods for the Assembly class (see 5643962)
    The new methods allow getting various details of an assembly.

  • Marked JArrayExtensions and JObjectExtensions classes (see 403145a)
    The classes in the Skybrud.Essentials.Json.Extensions has been marked as obsolete as similar classes are found in the Skybrud.Essentials.Json.Extensions.Newtonsoft namespace.