Eventualist.Extensions 3.0.0.17

dotnet add package Eventualist.Extensions --version 3.0.0.17
NuGet\Install-Package Eventualist.Extensions -Version 3.0.0.17
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Eventualist.Extensions" Version="3.0.0.17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Eventualist.Extensions --version 3.0.0.17
#r "nuget: Eventualist.Extensions, 3.0.0.17"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Eventualist.Extensions as a Cake Addin
#addin nuget:?package=Eventualist.Extensions&version=3.0.0.17

// Install Eventualist.Extensions as a Cake Tool
#tool nuget:?package=Eventualist.Extensions&version=3.0.0.17

Eventualist.Extensions

This package contains some small but handy extension methods

A number of simple extensions to bool, and collections. Mainly used for my own website, but you can peruse for your own pleasure.

  • Bool: AddNot (transforms a string according to the value of the bool)
  • Bool: ToYesOrNo (transforms bool to a yes or no)
  • Collection: IsEmpty: returns true if collection is empty
  • Collection: IsNotEmpty: returns true if collection is not empty
  • Collection Divide: returns a list of sublists of the collections, with a specified maximumlength

In 1.0.0.13

  • Memoize, to automatically cache function results. Just apply Memoize() to a Function object to get a memoized version. Caveats: it only works for up to two arguments, and it does not much benefit recursive functions.

In 2.0.0.0

  • No new functionality but now compatible with .net 6.0. For compatibility with older versions use 1.0.0.19</Description>

In 2.0.0.9

  • Added new functionality for Memoize: up to six arguments are now supported

In 2.0.0.15

  • Updated to .NET 7. Added extra unit tests and null safety checks

In 3.0.0.9

  • Update to .NET 8

In 3.0.0.17

  • Added the MustComeBefore attribute to make sure dates in your model are always in the right order.

An example use of this would be:

    internal class TimePeriod
    {
        [MustComeBefore("EndDate")]
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
    }

This attribute works with the standard .NET validators.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0.17 210 11/25/2023
3.0.0.9 88 11/25/2023
2.0.0.17 205 3/5/2023
2.0.0.15 246 1/29/2023
2.0.0.11 358 9/3/2022
2.0.0.9 397 7/14/2022
2.0.0.1 390 7/14/2022
1.0.0.19 471 1/4/2021