IbanNet 4.4.2

Provides a strict International Bank Account Number (IBAN) validator, parser, builder and the Iban primitive type.

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package IbanNet -Version 4.4.2
dotnet add package IbanNet --version 4.4.2
<PackageReference Include="IbanNet" Version="4.4.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IbanNet --version 4.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: IbanNet, 4.4.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install IbanNet as a Cake Addin
#addin nuget:?package=IbanNet&version=4.4.2

// Install IbanNet as a Cake Tool
#tool nuget:?package=IbanNet&version=4.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

IbanNet is a .NET library providing functionality to validate and parse an International Bank Account Number also known as IBAN.

Example with validator

IIbanValidator validator = new IbanValidator();
ValidationResult validationResult = validator.Validate("NL91 ABNA 0417 1643 00");
if (validationResult.IsValid)
{
    // ..
}

Example with Iban type

Iban iban;
IIbanParser parser = new IbanParser(IbanRegistry.Default);
bool success = parser.TryParse("NL91 ABNA 0417 1643 00", out iban);
if (success)
{
    Console.WriteLine(iban.ToString(IbanFormat.Obfuscated)); // XXXXXXXXXXXXXX4300
}

v4.4.2

  • Deprecate loose validation mode. Will be removed in v5.x.

v4.4.1

  • IIbanRegistry.TryGetValue now supports case insensitive country codes.

v4.4.0

  • #21 #31 Added IbanGenerator.
  • LTS: change target frameworks .NET 4.5 and 4.7 to 4.5.2 and 4.7.2 respectively.
  • Fix Iraq (IQ) and Finland (FI) patterns (does not affect validation outcome).
  • Introduce pattern abstraction for registry which encapsulates a pattern string and tokenizer. Deprecates IStructureValidationFactory, but keeps backwards compatible. Patterns are useful when implementing more/future providers to extend country support.

IbanNet is a .NET library providing functionality to validate and parse an International Bank Account Number also known as IBAN.

Example with validator

IIbanValidator validator = new IbanValidator();
ValidationResult validationResult = validator.Validate("NL91 ABNA 0417 1643 00");
if (validationResult.IsValid)
{
    // ..
}

Example with Iban type

Iban iban;
IIbanParser parser = new IbanParser(IbanRegistry.Default);
bool success = parser.TryParse("NL91 ABNA 0417 1643 00", out iban);
if (success)
{
    Console.WriteLine(iban.ToString(IbanFormat.Obfuscated)); // XXXXXXXXXXXXXX4300
}

v4.4.2

  • Deprecate loose validation mode. Will be removed in v5.x.

v4.4.1

  • IIbanRegistry.TryGetValue now supports case insensitive country codes.

v4.4.0

  • #21 #31 Added IbanGenerator.
  • LTS: change target frameworks .NET 4.5 and 4.7 to 4.5.2 and 4.7.2 respectively.
  • Fix Iraq (IQ) and Finland (FI) patterns (does not affect validation outcome).
  • Introduce pattern abstraction for registry which encapsulates a pattern string and tokenizer. Deprecates IStructureValidationFactory, but keeps backwards compatible. Patterns are useful when implementing more/future providers to extend country support.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on IbanNet:

Package Downloads
IbanNet.FluentValidation
FluentValidation support to validate IBAN user input.
IbanNet.DataAnnotations
Data annotations to validate IBAN user input.
IbanNet.DependencyInjection.ServiceProvider
Microsoft.Extensions.DependencyInjection integration for IbanNet; IbanNet provides an IBAN validator and parser.
IdokladSdk
SDK for iDoklad API
IbanNet.DependencyInjection.Autofac
Autofac IoC container integration for IbanNet; IbanNet provides an IBAN validator and parser.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
5.0.0-beta0001 57 6/17/2021
4.4.2 155 6/17/2021
4.4.1 649 6/13/2021
4.4.0 151 6/12/2021
4.3.1 3,012 6/5/2021
4.3.0 94,848 11/27/2020
4.2.0 4,455 11/7/2020
4.1.0 41,705 8/8/2020
4.0.1 63,320 5/12/2020
4.0.0 27,790 2/8/2020
4.0.0-beta0241 376 2/8/2020
4.0.0-beta0227 311 2/8/2020
4.0.0-beta0223 443 2/8/2020
4.0.0-beta0222 405 2/8/2020
4.0.0-beta0204 399 2/6/2020
4.0.0-beta0190 406 1/14/2020
4.0.0-beta0187 353 1/13/2020
4.0.0-beta0186 305 1/13/2020
4.0.0-beta0183 372 1/13/2020
4.0.0-beta0178 10,023 12/30/2019
4.0.0-beta0177 347 12/29/2019
4.0.0-beta0172 401 12/29/2019
3.2.2 244 5/12/2020
3.2.1 28,815 1/14/2020
3.2.0 12,380 11/23/2019
3.1.2 913 10/25/2019
3.1.1 8,367 7/25/2019
3.1.0 19,763 5/10/2019
3.0.0 30,071 2/14/2019
2.1.0 25,498 9/18/2018
2.0.0 12,236 2/3/2018
1.2.0 794 12/25/2017
1.1.16 708 12/25/2017
1.0.19 798 12/25/2017
1.0.18 638 12/25/2017
1.0.17 693 12/25/2017