| VerhoeffValidateCheckSum Method |
Validates a string of numeric characters has a valid Verhoeff checksum digit suffix character.
Namespace: Orthogonal.Common.BasicAssembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax public static bool ValidateCheckSum(
string number
)
Parameters
- number String
- The input string of numeric characters.
Return Value
BooleanTrue if the argument value has a valid checksum digit suffix character.
Example bool ok = Verhoeff.ValidateCheckSum("123451");
Console.WriteLine($"123451 checks {ok}");
ok = Verhoeff.ValidateCheckSum("12345");
Console.WriteLine($"12345 checks {ok}");
See Also