Click or drag to resize

VerhoeffGenerateCheckSum Method

Generates a Verhoeff checksum digit suffixed string.

Namespace: Orthogonal.Common.Basic
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax
C#
public static string GenerateCheckSum(
	string number
)

Parameters

number  String
The input string of numeric characters.

Return Value

String
The input value suffixed with the checksum digit character.
Example
C#
string s = Verhoeff.GenerateCheckSum("12345");
Console.WriteLine($"Checked string is '{s}'");
// Checked string is '123451'
See Also