DaanV2.UUID.Net 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DaanV2.UUID.Net --version 1.0.0                
NuGet\Install-Package DaanV2.UUID.Net -Version 1.0.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="DaanV2.UUID.Net" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DaanV2.UUID.Net --version 1.0.0                
#r "nuget: DaanV2.UUID.Net, 1.0.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.
// Install DaanV2.UUID.Net as a Cake Addin
#addin nuget:?package=DaanV2.UUID.Net&version=1.0.0

// Install DaanV2.UUID.Net as a Cake Tool
#tool nuget:?package=DaanV2.UUID.Net&version=1.0.0                

UUID.Net

Provides a base class that can handle UUIDs as an object but also provides the generators to generate version 3, 4 and 5.

Table of Contents

Implicit Casting

This API contains pre-made casting methods that convert UUID to strings, char arrays or vice versa.

Usage Example

Below are two examples of generating UUIDs and usage

Generating UUIDs

Generate a UUID
UUID Temp = UUIDFactory.CreateUUID(4, 2); //Version 4, Variant 2
String UUID = UUIDFactory.CreateUUID(3, 1); //Version 3, Variant 1. auto cast to string
Generate a batch of UUIDs
UUID[] UUIDs = UUIDFactory.CreateUUIDs(100000, 4, 1); //Version 4, Variant 1, Amount of 100000
Generating through a Generator
IUUIDGenerator Generator = UUIDFactory.CreateGenerator(4, 1); //Get the version 4, variant 1 generator
IUUIDGenerator GeneratorV4 = new DaanV2.UUID.Generators.Version4.GeneratorVariant1(); //Get the version 4, variant 1 generator

UUID Out = GeneratorV4.Generate();

UUIDs Version

Version Variant Description Context Needed Context Type
3 1 A UUID generated from a string using MD5 hashing bits, 122 bits Yes String
4 1 A random generated UUID of 122 bits No Int32
4 2 A random generated UUID of 121 bits No Int32
5 1 A UUID generated from a string using SHA1 hashing bits, 122 bits Yes String

Performance

See Performance

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DaanV2.UUID.Net:

Package Downloads
MiniJoyApp

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.