FieldCache 1.0.0-alpha.3

FieldCache is a good replacement for Lazy<T> for cases when:

First, needed safe record comparison (Equals overriden to true).

Second, when it is more convenient to pass lambda inside the method (e. g. when local fields to be taken into account).

This is a good use example:

public record Person(string FirstName, string LastName)
{
public string FullName => fullName.GetValue(@this => @this.FirstName + " " + @this.LastName, this);
private FieldCache<string> fullName;
}

This is a prerelease version of FieldCache.
Install-Package FieldCache -Version 1.0.0-alpha.3
dotnet add package FieldCache --version 1.0.0-alpha.3
<PackageReference Include="FieldCache" Version="1.0.0-alpha.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FieldCache --version 1.0.0-alpha.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FieldCache, 1.0.0-alpha.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install FieldCache as a Cake Addin
#addin nuget:?package=FieldCache&version=1.0.0-alpha.3&prerelease

// Install FieldCache as a Cake Tool
#tool nuget:?package=FieldCache&version=1.0.0-alpha.3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Bug related to "with" fixed (now instead of boolean holder's references are checked)

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FieldCache:

Package Downloads
AngouriMath
Enables to work with formulas built in the code or from a string. Computing, derivating, latex rendering, compilation, solving equations and systems of equations analytycally, simplification, and much more. Read more on https://am.angouri.org.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on FieldCache:

Repository Stars
asc-community/AngouriMath
Open-source symbolic algebra library for C# and F#. One of the most powerful in .NET

Version History

Version Downloads Last updated
1.0.0-alpha.3 7,223 11/23/2020
1.0.0-alpha.2 297 11/21/2020
1.0.0-alpha.1 654 11/19/2020