Ejemplo n.º 1
0
 /// <summary>
 /// Validates the CPF against Receita Federal's algorithm
 /// </summary>
 /// <param name="cpf">The CPF's value</param>
 /// <returns>True if it is a valid CNPJ</returns>
 public static bool IsValid(CPF cpf)
 {
     return(cpf.IsValid());
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Validates the CPF against Receita Federal's algorithm
        /// </summary>
        /// <returns>True if it is a valid CNPJ</returns>
        public bool IsValid()
        {
            string cpf = this.value.ToString().PadLeft(11, '0');

            return(CPF.IsValid(cpf));
        }