TwoRivers.InternetTypes 2.0.0-beta.0

This is a prerelease version of TwoRivers.InternetTypes.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package TwoRivers.InternetTypes --version 2.0.0-beta.0
                    
NuGet\Install-Package TwoRivers.InternetTypes -Version 2.0.0-beta.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="TwoRivers.InternetTypes" Version="2.0.0-beta.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TwoRivers.InternetTypes" Version="2.0.0-beta.0" />
                    
Directory.Packages.props
<PackageReference Include="TwoRivers.InternetTypes" />
                    
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 TwoRivers.InternetTypes --version 2.0.0-beta.0
                    
#r "nuget: TwoRivers.InternetTypes, 2.0.0-beta.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 TwoRivers.InternetTypes@2.0.0-beta.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=TwoRivers.InternetTypes&version=2.0.0-beta.0&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TwoRivers.InternetTypes&version=2.0.0-beta.0&prerelease
                    
Install as a Cake Tool

TwoRivers.InternetTypes

This project contains types that are widely used on the Internet.

  • DomainName - A class that represents a domain name and provides validation and parsing functionality
  • Serial - A class that represents a serial number and provides validation and parsing functionality
  • TTL - A class that represents a time-to-live value and provides validation and parsing functionality

Installation

You can install the TwoRivers.InternetTypes package via NuGet Package Manager Console:

Install-Package TwoRivers.InternetTypes

Or via .NET CLI:

dotnet add package TwoRivers.InternetTypes

Usage

To use the TwoRivers.InternetTypes package, simply create an instance of the desired type and use it's methods for validation and parsing. Here's an example of how to use the Serial class:

[Fact]
public void Must_output_Human_Readable_strings()
{
    var s = Serial.NewSerial(DateTimeOffset.UnixEpoch);
    s.ToFormattedString().Should().Be("1970-01-01-00");
    s = s.Increment(DateTimeOffset.UnixEpoch);
    s.ToFormattedString().Should().Be("1970-01-01-01");
}
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

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
2.0.0-beta.2 0 3/3/2026
2.0.0-beta.1 0 3/3/2026
2.0.0-beta.0 0 3/3/2026
1.1.6 77 2/26/2026
1.1.5 78 2/25/2026
1.1.4 89 2/22/2026
1.1.3 88 2/22/2026
1.1.2 87 2/22/2026
1.1.1 88 2/22/2026
1.1.0 85 2/22/2026
1.0.0 121 2/17/2026