Date | 2020-09-27 (1,510 days ago) |
---|---|
Downloads | 25K 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 |
#installation
">Installation#changelog
">ChangelogIntroduced IsTomorrow
and IsYesterday
properties for the EssentialsTime
class (see c3e55fc
)
Similar to how the existing IsToday
property can be used to check whether the an instance of EssentialsTime
matches the current day, the IsYesterday
and IsTomorrow
properties can now be used to check whether a EssentialsTime
matches the day before or after the current day respectively.
Fixed issue in the EssentialsTime
constructor (see 45bbc3c
)
In some situations, the constructor would throw an exception if the specified dateTime
didn't match timeZone
.
Introduced the PointUtils
class (see 6424864
)
The class replaces the DistanceUtils
class, which has now been marked as obsolete. The new class is added because it now contains methods for more than just calculating the distance between two points as the DistanceUtils
did.
Added GetDistance
extension methods to the PointExtensions
class (see cfe1d9f
)
The extension methods let's you calculate the distance between two instances of IPoint
.
Added Min
and Max
method overloads to the EnumUtils
class (see 97a2578
)
The new extension methods let's you compare multiple enum values.
Improved implementation of existing Min
and Max
methods (see 2319d2f
)
The existing implementation would use Enum.GetName
to first get the name, and the Enum.Parse
to convert the name to the corresponding enum value. The new implementation uses Enum.ToObject
, which skips the step of finding the name first, which makes it a lot faster.