Enban is an IBAN/BBAN API for .NET, including parsing, validation and formatting.
The following snippets show some basic uses of Enban.
var parsed = IBANPattern.Electronic.Parse("GI75NWBK000000007099453");
if (parsed.Success && parsed.Value.CheckDigitValid)
{
Console.WriteLine($"IBAN '{parsed.Value:p}' is valid!");
}
prints IBAN 'GI75 NWBK 0000 0000 7099 453' is valid!
var germany = CountryProviders.Default["DE"];
var iban = new BBAN(germany, "210501700012345678").ToIBAN();
Console.WriteLine($"IBAN with check digit (valid: {iban.CheckDigitValid}): " + IBANPattern.Print.Format(iban));
prints IBAN with check digit (valid: True): DE68 2105 0170 0012 3456 78
Enban is available on NuGet.