CPFCNPJ-NET-6 (nuget): 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);              //format CPF or CNPJ             formato = main.FormatCPFCNPJ("55645180000150", CPFCNPJ.Enum.TypeString.CNPJ);
Keywords: cpf|check|valid|format|cnpj|mauriciojunior.net|ecode10.com