Pure.Chart.Model.HashCodes 0.1.0-preview.2.0.0

This is a prerelease version of Pure.Chart.Model.HashCodes.
dotnet add package Pure.Chart.Model.HashCodes --version 0.1.0-preview.2.0.0
                    
NuGet\Install-Package Pure.Chart.Model.HashCodes -Version 0.1.0-preview.2.0.0
                    
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="Pure.Chart.Model.HashCodes" Version="0.1.0-preview.2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pure.Chart.Model.HashCodes" Version="0.1.0-preview.2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Pure.Chart.Model.HashCodes" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Pure.Chart.Model.HashCodes --version 0.1.0-preview.2.0.0
                    
#r "nuget: Pure.Chart.Model.HashCodes, 0.1.0-preview.2.0.0"
                    
#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.
#:package Pure.Chart.Model.HashCodes@0.1.0-preview.2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Pure.Chart.Model.HashCodes&version=0.1.0-preview.2.0.0&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Pure.Chart.Model.HashCodes&version=0.1.0-preview.2.0.0&prerelease
                    
Install as a Cake Tool

Pure.Chart.Model.HashCodes

Deterministic hash code implementations for chart model abstractions in the Pure ecosystem.

.NET build & test Build and Deploy NuGet License: MIT

Overview

Pure.Chart.Model.HashCodes provides deterministic, byte-enumerable hash codes for every type in the chart model abstraction layer. Each type wraps one of the Pure.Chart.Model.Abstractions interfaces and produces a stable byte sequence by prepending a fixed 16-byte type-discriminator prefix before hashing the object's fields. The resulting sequences compose cleanly with Pure.HashCodes.DeterminedHash, enabling structural equality checks and content-addressed storage across chart configurations.

API

All types are sealed record and implement IDeterminedHash (which extends IEnumerable<byte>).

Type Wraps Hashed fields
ChartHash IChart Title, Description, Type, XAxis, YAxis, Series
ChartTypeHash IChartType Name
ChartSeriesHash IChartSeries Legend, XAxisSource, YAxisSource, LineType
AxisHash IAxis Legend

All hash types live in the Pure.Chart.Model.HashCodes namespace.

Dependencies

Target Frameworks

  • .NET 7
  • .NET 8
  • .NET 9
  • .NET 10

Installation

dotnet add package Pure.Chart.Model.HashCodes

Usage

using Pure.Chart.Model.HashCodes;

IChart chart = ...; // any IChart implementation

// Enumerate the hash bytes directly
byte[] hash = new ChartHash(chart).ToArray();

// Compose with other IDeterminedHash values
IEnumerable<byte> combined = new DeterminedHash(
    new ChartHash(chartA).Concat(new ChartHash(chartB))
);
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Pure.Chart.Model.HashCodes:

Package Downloads
Pure.Chart.RichRelationalModel.HashCodes

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.2.0.0 90 10/23/2026
0.1.0-preview.1.0.0 698 4/19/2026
0.1.0-preview.0.1.0 205 2/9/2026