OrgStructBuilder 1.0.1

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

OrgStructBuilder (Alpha)

OrgStructBuilder is a high-performance .NET library designed for calculating Indirect Ownership and Effective Control within complex corporate structures. By leveraging matrix-based linear algebra (via MathNet.Numerics), it efficiently handles multi-layered investment chains and circular ownership scenarios.

Note: This is an Alpha version. It is currently undergoing active development. New features and breaking changes may be introduced frequently.

Key Features

  • Indirect Ownership Calculation: Automatically derives final ownership percentages through complex investment chains.
  • Full Control Simulation: Supports modeling where ownership above a certain threshold is treated as 100% control (Ideal for Pillar 2 Global Minimum Tax analysis).
  • Matrix-based Engine: Optimized for enterprise-level data processing using sparse and dense matrix operations.

Configuration Options

You can fine-tune the control logic using OrgStructBuildOption.

Option Type Description
FullControlThreshold double The threshold to assume 100% control (e.g., 0.5 for 50%).
MoreThanOrEqual bool true for "Greater than or equal to" (>=), false for "Strictly greater than" (>).

Practical Example

Scenario: Entity A (90%) -> Entity B (50%) -> Entity C

  1. Standard Equity Method (FullControlThreshold = 1.0):
    • A's ownership of C = 45% ($0.9 \times 0.5$).
  2. Control-Based Method (FullControlThreshold = 0.5, MoreThanOrEqual = true):
    • Since B owns >= 50% of C, B's control is treated as 100%.
    • A's ownership of C = 90% ($0.9 \times 1.0$).
  3. Strict Control Method (FullControlThreshold = 0.5, MoreThanOrEqual = false):
    • Since 50% does not exceed the threshold, no full control is granted.
    • A's ownership of C = 45%.

Quick Start

var builder = new OrgStructBuilder();
var options = new OrgStructBuildOption 
{ 
    FullControlThreshold = 0.5, 
    MoreThanOrEqual = true 
};

var result = builder.CalculateIndirectOwnership(dtoList, fromId, toId, options);
Console.WriteLine($"Total Ownership: {result.TotalOwnershipPercent:P2}");
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.  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

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
1.0.1 107 1/31/2026
1.0.0 97 1/30/2026