WilvanBil.NationalRegisterNumber 1.0.0

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

// Install WilvanBil.NationalRegisterNumber as a Cake Tool
#tool nuget:?package=WilvanBil.NationalRegisterNumber&version=1.0.0                

National Register Number

National Register Number is a package that can generate and validate Belgian national register numbers. The logic is based on Official Documentation by the Belgian Government

Installation

TODO

Usage

After installation you can use the static class NationalRegisterNumberGenerator to generate or validate your national register numbers.

Validate

This will return true or false based on input.

NationalRegisterNumberGenerator.IsValid(string here)

Generate

This will return a string that's a valid national register number. Following overloads are possible on NationalRegisterNumberGenerator.Generate()

Generate()
Generate(DateTime birthDate)
Generate(BiologicalSex sex)
Generate(DateTime birthDate, BiologicalSex sex)
Generate(DateTime minDate, DateTime maxDate)
Generate(DateTime minDate, DateTime maxDate, BiologicalSex sex)
Generate(DateTime birthDate, int followNumber)

followNumber is a number (inclusive) between 1 and 998. If your parameters are invalid, it will throw an ArgumentException with a message why Generate() has failed. Keep in mind that the absolute minDate is 1900/01/01 and the absolute maxDate is Datetime.Today on the time that the code runs. If you pick a date outside this range, it will also throw an ArgumentException.

!!WARNING!!

Only use the package for test and research purposes. Do not use it in a live/production environment. It should only be used for unit/integration testing.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

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
1.0.1 426 9/19/2022
1.0.0 429 9/14/2022