Beizsoft.Factories.Interned 1.0.0

An interning extension for Beizsoft.Factories.

Install-Package Beizsoft.Factories.Interned -Version 1.0.0
dotnet add package Beizsoft.Factories.Interned --version 1.0.0
<PackageReference Include="Beizsoft.Factories.Interned" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Beizsoft.Factories.Interned --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Beizsoft.Factories.Interned, 1.0.0"
#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 Beizsoft.Factories.Interned as a Cake Addin
#addin nuget:?package=Beizsoft.Factories.Interned&version=1.0.0

// Install Beizsoft.Factories.Interned as a Cake Tool
#tool nuget:?package=Beizsoft.Factories.Interned&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Beizsoft.Factories.Interned

A library which provides an InterningFactory<T, TContext> in order to intern factory-built classes which were built with the same TContext.

This package is a small glue package for Beizsoft.Factories and Beizsoft.Interning.

To use the InterningFactory, one can construct it using its public constructor which takes an IInterner, or use the provided extension methods on IInterner (eg: ToFactory, or ToStructFactory. ToFactory creates an IFactory-implementing class instance for treating the IInterner as an IFactory, while ToStructFactory does the same. In most cases, users will want to use ToFactory, and avoid calling this multiple times so as not to incur unnecessary allocations. The ToStructFactory variant should only be used in a context where the resulting factory is never treated as its interface type, which would incur boxing.

Beizsoft.Factories.Interned

A library which provides an InterningFactory<T, TContext> in order to intern factory-built classes which were built with the same TContext.

This package is a small glue package for Beizsoft.Factories and Beizsoft.Interning.

To use the InterningFactory, one can construct it using its public constructor which takes an IInterner, or use the provided extension methods on IInterner (eg: ToFactory, or ToStructFactory. ToFactory creates an IFactory-implementing class instance for treating the IInterner as an IFactory, while ToStructFactory does the same. In most cases, users will want to use ToFactory, and avoid calling this multiple times so as not to incur unnecessary allocations. The ToStructFactory variant should only be used in a context where the resulting factory is never treated as its interface type, which would incur boxing.

Release Notes

https://github.com/iBeizsley/Beizsoft.Factories.Interned/releases/tag/1.0.0

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 112 7/17/2021
1.0.0-alpha1 53 7/5/2021