Skip to content

v1.1.51

Compare
Choose a tag to compare
@abjerner abjerner released this 11 Sep 10:58
· 41 commits to v1/main since this release

Installation

Install via NuGet - either via the .NET CLI:

dotnet add package Skybrud.Essentials --version 1.1.51

or the NuGet package manager:

Install-Package Skybrud.Essentials -Version 1.1.51

Changelog

  • Added .ToIso8601 extension methods for converting DateTime, DateTimeOffset and TimeSpan instances to their ISO 8601 representation (see 955cc60)
    As an alternative to the static Iso8601Utils.ToString methods, similar functionality is now available as extension methods.

  • Added InvariantFormat static method and ToInvariantString extension method (see 54c7218)
    Adds a bit of extra functionality for easily converting an instance to an invariant string. Probably most relevant for numbers and other simple types.

  • Added new GetMethodInfo and GetPropertyInfo methods to the ReflectionUtils class (see f12eb5f)
    The methods allows getting either method info or property info of an expression using reflection.

  • Added static Min and Max methods for getting the minimum and maximum values of two or more DateTime or DateTimeOffset instances (see 7858f98)
    Might be slightly easier to get the minimum or maximum with these methods.