Anonymous user
IBAN: Difference between revisions
→{{header|C sharp}}
(Nimrod -> Nim) |
|||
Line 539:
int lengthForCountryCode;
var countryCodeKnown =
if (!countryCodeKnown)
{
Line 555:
var newIban = value.Substring(4) + value.Substring(0, 4);
newIban = Regex.Replace(newIban, @"\D", match => (
var remainder = BigInteger.Parse(newIban) % 97;
Line 561:
if (remainder != 1)
return ValidationResult.ValueFailsModule97Check;
return ValidationResult.IsValid;
Line 576 ⟶ 575:
}
private static
{
{"AL", 28},
|