Date | 2025-06-10 (14 days ago) |
---|---|
Downloads | 38 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 .NET 7 |
#installation
">InstallationInstall via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.1.60
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.1.60
#changelog
">ChangelogAdded new GetNativeLanguageName
extension method for CultureInfo
(see 8577b69
)
A CultureInfo
may be based on a language or a language in a specific country. For the latter, the native name will be something like "Dansk (Danmark)", but when based on both a language and a country, the CultureInfo
will have a reference to parent CultureInfo
that will only be based on the language, so the native name for this will be "Dansk" instead, which is exactly what we want for this method.
Added Extends
and Implements
method overloads (see 9a570f2
)
Abstract or static classes can't be used as a generic type parameter, so the new method overloads take a Type
instance instead.
Added logic for getting the build date from an assembly (see aa01744
)
This is mainly an internal thing.
Added misc extension methods for parsing IConfiguration
values (see b955d44
)
This makes manual parsing of IConfiguration
instances a bit easier.
Added ParseJsonObject
and LoadJsonObject
method overloads to the JsonUtils
class (see 43dca9a
)
The new method overloads allow specifying a Type
parameter instead of a generic type parameter.
Introduced new StreamUtils
class (c19a61f
)
The class contains various utility/helper methods from converting to a stream and back again.
Introduced new JsonUtils.LoadJsonToken
, JsonUtils.LoadJsonObject
, and JsonUtils.LoadJsonArray
method overloads (see 7b7434f
)
The existing methods supports loading JSON values from a path the disk, whereas the new methods allow loading JSON values from a stream.
Fixed issue with the "EssentialsWeek.GetStartOfWeek" method returning an incorrect in edge cases (see 5c30341
)
Time calculations with time zones and daylight savings can be a bit tricky. The EssentialsWeek.GetStartOfWeek
method would in some cases return an incorrect result by not properly accounting for days daylight savings starts or ends.