Click or drag to resize

Verhoeff.GenerateCheckSum Method

Generates a Verhoeff checksum digit suffixed string.

Namespace: Orthogonal.Common.Basic
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2025-03-15 14:42 GMT+11
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