MeshWeaver.Arithmetics 2.1.0

dotnet add package MeshWeaver.Arithmetics --version 2.1.0
                    
NuGet\Install-Package MeshWeaver.Arithmetics -Version 2.1.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="MeshWeaver.Arithmetics" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MeshWeaver.Arithmetics" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="MeshWeaver.Arithmetics" />
                    
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 MeshWeaver.Arithmetics --version 2.1.0
                    
#r "nuget: MeshWeaver.Arithmetics, 2.1.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.
#addin nuget:?package=MeshWeaver.Arithmetics&version=2.1.0
                    
Install MeshWeaver.Arithmetics as a Cake Addin
#tool nuget:?package=MeshWeaver.Arithmetics&version=2.1.0
                    
Install MeshWeaver.Arithmetics as a Cake Tool

MeshWeaver.Arithmetics

MeshWeaver.Arithmetics implements the aggregation engine that processes data structures decorated with attributes from MeshWeaver.Arithmetics.Abstractions. It provides runtime aggregation, multiplication, and data transformation capabilities.

Overview

The library provides:

  • Runtime analysis of attribute-decorated classes
  • Aggregation pipeline execution
  • Multiplication processing
  • Extensible aggregation strategies

Usage

Basic Aggregation

// Define data structure with attributes
public class SalesData
{
    [AggregateBy]
    public string Region { get; set; }
    
    [AggregateOver]
    public string Product { get; set; }
    
    public decimal Amount { get; set; }
}

// Perform aggregation
var aggregator = new Aggregator();
var salesData = new List<SalesData> 
{
    new() { Region = "North", Product = "A", Amount = 100 },
    new() { Region = "North", Product = "A", Amount = 200 },
    new() { Region = "South", Product = "B", Amount = 150 }
};

var results = aggregator.Aggregate(salesData);
// Results grouped by Region and Product with summed Amount

Key Concepts

  • Arithmetics architecture
  • Integration patterns
  • Extension points
  • Configuration options

Integration with MeshWeaver

  • Works with other MeshWeaver components
  • Extends core functionality
  • Adds specialized capabilities

See Also

Refer to the main MeshWeaver documentation for more information about the overall project.

Product Compatible and additional computed target framework versions.
.NET 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. 
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 MeshWeaver.Arithmetics:

Package Downloads
MeshWeaver.DataCubes.Abstractions

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 76 4/6/2025
2.0.3 492 3/24/2025
2.0.2 466 3/24/2025
2.0.1 115 3/21/2025
2.0.0 160 3/20/2025
2.0.0-preview3 112 2/28/2025
2.0.0-Preview2 124 2/10/2025
2.0.0-preview1 142 1/6/2025
1.0.1 147 10/8/2024
1.0.0 139 10/8/2024