WilvanBil.NationalRegisterNumber
1.0.0
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
<PackageReference Include="WilvanBil.NationalRegisterNumber" Version="1.0.0" />
paket add WilvanBil.NationalRegisterNumber --version 1.0.0
#r "nuget: WilvanBil.NationalRegisterNumber, 1.0.0"
// 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 | Versions 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. |
-
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.