v1.1.47
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 existingParse{Type}
methods, which returns the default value for the respective value types, the new methods returnnull
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 existingTo{Type}
extension methods, which returns the default value for the respective value types, the new methods returnnull
if the parsing fails. -
Introduced new
ParseEnumOrNull
utility method andToEnumOrNull
extension method (see a4baefb)
As an alternative to the existingParseEnum
utility method and theToEnum
extension method, this release introducesParseEnumOrNull
andToEnumOrNull
alternatives that returnnull
if the parsing fails.