namespace JUMIN { /// <summary> /// 주민번화 체크하는 dll /// </summary> public class JuminNum { public JuminNum(){} public bool NumCheck(string JuminParameter) { string[] ArrayJumin = new string[13]; for(int i = 0;i< 13; i++) { ArrayJumin[i] = JuminParameter.Substring(i, 1); }
int total = 0; total += int.Parse(ArrayJumin[0]) * 2; total += int.Parse(ArrayJumin[1]) * 3; total += int.Parse(ArrayJumin[2]) * 4; total += int.Parse(ArrayJumin[3]) * 5; total += int.Parse(ArrayJumin[4]) * 6; total += int.Parse(ArrayJumin[5]) * 7; total += int.Parse(ArrayJumin[6]) * 8; total += int.Parse(ArrayJumin[7]) * 9; total += int.Parse(ArrayJumin[8]) * 2; total += int.Parse(ArrayJumin[9]) * 3; total += int.Parse(ArrayJumin[10]) * 4; total += int.Parse(ArrayJumin[11]) * 5; total = total % 11;