NetworkInspector.Values 0.3.0

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

NetworkInspector.Values

NuGet

Typed address and timestamp primitives for NetworkInspector and related .NET networking workflows.

What This Is

NetworkInspector.Values provides lightweight value types commonly needed in packet pipelines:

  • MacAddress
  • IPv4Address
  • IPv6Address
  • Eui64
  • Uuid
  • Timestamp

These types are designed for predictable formatting and comparison behavior in parsing and export code.

Why It Stands Out

  • Strong typing for common network identifiers.
  • Consistent formatting output for logs and exports.
  • Easy to reuse outside of the full NetworkInspector stack.

Install

dotnet add package NetworkInspector.Values

Quick Start

using NetworkInspector.Values;

MacAddress mac = new(0x00, 0x1A, 0x2B, 0x3C, 0x4D, 0x5E);
IPv4Address ip4 = new(192, 168, 1, 10);
IPv6Address ip6 = IPv6Address.Parse("2001:db8::1");
Timestamp ts = Timestamp.FromSecs(1_700_000_000);

Console.WriteLine(mac); // 00:1a:2b:3c:4d:5e
Console.WriteLine(ip4); // 192.168.1.10
Console.WriteLine(ip6); // 2001:db8::1
Console.WriteLine(ts);

Common Tasks

Store Typed Addresses

Use value types in domain objects instead of raw strings to reduce parsing/formatting ambiguity.

Compare And Sort

IEquatable<T> and comparison support make these values practical for indexing and reporting workflows.

Export Stable Text

Use built-in string formatting for CSV/JSON/text output without custom converters for each primitive.

Limits And Thread-Safety Notes

  • These structs are value-centric and suitable for concurrent read usage.
  • Validate external input before parsing string representations.

License

MIT License

Product Compatible and additional computed target framework versions.
.NET 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 (2)

Showing the top 2 NuGet packages that depend on NetworkInspector.Values:

Package Downloads
NetworkInspector.Core

High-performance protocol analysis stack for network packet dissection. Provides the core framework for protocol registration, field trees, packet parsing, and cross-packet indexing. Includes a Roslyn source generator for declarative protocol definitions.

NetworkInspector.FrameBuilder

Typed, allocation-free frame-builder library for NetworkInspector. Compose protocol stacks (Ethernet, VLAN, IPv4, IPv6, UDP, TCP, WebSocket, SOME/IP, CAN, …) using a generic cons-list API and emit RFC-conformant wire frames with zero heap allocations on the hot path.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0 0 5/21/2026
0.2.0 46 5/19/2026