Skip to content

v1.1.47

Compare
Choose a tag to compare
@abjerner abjerner released this 06 Feb 16:36
· 65 commits to v1/main since this release

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

  • 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.