Home

Awesome

TypeID .Net Standard 2.1

A C# implementation of TypeIDs (Version 0.2.0)

License: Apache 2.0

TypeIDs are a modern, type-safe, globally unique identifier based on the upcoming UUIDv7 standard. They provide a ton of nice properties that make them a great choice as the primary identifiers for your data in a database, APIs, and distributed systems. Read more about TypeIDs in their spec.

This particular implementation provides a C# library for generating and parsing TypeIDs.

Usage

Import the library

using TypeId;

Create a TypeID

var typeId = TypeId.NewTypeId("prefix");

Parse a TypeID

var typeId = TypeId.Parse("contact_2x4y6z8a0b1c2d3e4f5g6h7j8k");

Get the string representation of a TypeID

var typeId = TypeId.NewTypeId("prefix");
var typeIdString = typeId.ToString();