CPF / CNPJ Framework Methods that help you to check and format the special numbers of CPF and CNPJ. Help me a lot and I'm putting here to help other people. Example to use the code: //check CNPJ CPFCNPJ.IMain main1 = new CPFCNPJ.Main(); var resultCNPJ = main1.IsValidCPFCNPJ("55645180000150"); Console.WriteLine(resultCNPJ); //check CPF var resultCPF = main1.IsValidCPFCNPJ("90099299033"); Console.WriteLine(resultCPF);
$ dotnet add package CPFCNPJNo README available.