Exemple #1
0
        internal static char GetControlCode(string partialWithoutControlCode)
        {
            var sum = 0;

            sum += new OddCode(partialWithoutControlCode).Total;
            sum += new EvenCode(partialWithoutControlCode).Total;

            var controlCode = new RestCode(sum).ToString();

            return(controlCode[0]);
        }
Exemple #2
0
		internal static char GetControlCode(string partialWithoutControlCode)
		{
			var sum = 0;

			sum += new OddCode(partialWithoutControlCode).Total;
			sum += new EvenCode(partialWithoutControlCode).Total;

			var controlCode = new RestCode(sum).ToString();

			return controlCode[0];
		}