Pure.Primitives.Bool.Operations
0.6.0
dotnet add package Pure.Primitives.Bool.Operations --version 0.6.0
NuGet\Install-Package Pure.Primitives.Bool.Operations -Version 0.6.0
<PackageReference Include="Pure.Primitives.Bool.Operations" Version="0.6.0" />
<PackageVersion Include="Pure.Primitives.Bool.Operations" Version="0.6.0" />
<PackageReference Include="Pure.Primitives.Bool.Operations" />
paket add Pure.Primitives.Bool.Operations --version 0.6.0
#r "nuget: Pure.Primitives.Bool.Operations, 0.6.0"
#:package Pure.Primitives.Bool.Operations@0.6.0
#addin nuget:?package=Pure.Primitives.Bool.Operations&version=0.6.0
#tool nuget:?package=Pure.Primitives.Bool.Operations&version=0.6.0
Pure.Primitives.Bool.Operations
Boolean operations for Pure IBool primitives — composable, immutable value objects for logical and bitwise bool operations.
Overview
Pure.Primitives.Bool.Operations provides sealed record types that implement logical and bitwise operations over IBool values. Each type is a composable value object — the operation is evaluated lazily when .BoolValue is accessed.
Types
| Type | Implements | Description |
|---|---|---|
And |
IBool |
Logical AND over a sequence of IBool values |
Or |
IBool |
Logical OR over a sequence of IBool values |
Not |
IBool |
Logical NOT of a single IBool value |
Xor |
IBool |
Logical XOR over a sequence of IBool values |
BitwiseAnd |
IBool |
Bitwise AND over a sequence of IBool values |
BitwiseOr |
IBool |
Bitwise OR over a sequence of IBool values |
EqualCondition |
IBool |
true if all supplied IBool values are equal |
NotEqualCondition |
IBool |
true if not all supplied IBool values are equal |
All types live in the Pure.Primitives.Bool.Operations namespace.
Design Principles
- Lazy evaluation — the operation is computed only when
.BoolValueis accessed. - Composable — any
IBoolcan be nested inside another operation. - AOT-compatible — no reflection; fully compatible with Native AOT.
Dependencies
Pure.Primitives.Abstractions—IBoolinterface
| Product | Versions 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. net11.0 is compatible. |
-
net10.0
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net11.0
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net7.0
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net8.0
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net9.0
- Pure.Primitives.Abstractions (>= 4.4.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Pure.Primitives.Bool.Operations:
| Package | Downloads |
|---|---|
|
Pure.Linq.Conditions
Package Description |
|
|
Pure.Authorization.OpenFGA.Model.Conditions
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.