Version 1.1.47

Date 2023-02-06 (648 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 via NuGet - either via the .NET CLI:

dotnet add package Skybrud.Essentials --version 1.1.47

or the NuGet package manager:

Install-Package Skybrud.Essentials -Version 1.1.47

#changelog">Changelog

  • Added misc Parse{Type}OrNull methods (see ada8998)
    The methods tries to parse a string value to a desired value type. Opposed to the existing Parse{Type} methods, which returns the default value for the respective value types, the new methods return null if the parsing fails.

  • Added new To{Type}OrNull extension methods (see 053a536)
    The methods tries to parse a string value to a desired value type. Opposed to the existing To{Type} extension methods, which returns the default value for the respective value types, the new methods return null if the parsing fails.

  • Introduced new ParseEnumOrNull utility method and ToEnumOrNull extension method (see a4baefb)
    As an alternative to the existing ParseEnum utility method and the ToEnum extension method, this release introduces ParseEnumOrNull and ToEnumOrNull alternatives that return null if the parsing fails.