Exemplo n.º 1
0
        public static bool ValidarDigitoChequeo(byte[] datos)
        {
            byte[] chk = ObtenerDigitoChequeo(datos);

            byte[] chkOri = new byte[2];
            chkOri[0] = datos[datos.Length - 3];
            chkOri[1] = datos[datos.Length - 2];

            if (!Convertir.TramasIguales(chk, chkOri))
            {
                return(false);
            }

            return(true);
        }