CPFCNPJ 1.0.1

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:

CPFCNPJ.Main main = new CPFCNPJ.Main();

           var formato = main.FormatCPFCNPJ("09009909000",  CPFCNPJ.Enum.TypeString.CPF);

           var val = main.IsValidCPFCNPJ("109.029.092-00");

           Console.WriteLine($"{formato}");
           Console.WriteLine($"{val}");

There is a newer version of this package available.
See the version list below for details.
Install-Package CPFCNPJ -Version 1.0.1
dotnet add package CPFCNPJ --version 1.0.1
<PackageReference Include="CPFCNPJ" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CPFCNPJ --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Example to use the code:

CPFCNPJ.Main main = new CPFCNPJ.Main();

var formato = main.FormatCPFCNPJ("09009909000", CPFCNPJ.Enum.TypeString.CPF);

var val = main.IsValidCPFCNPJ("109.029.092-00");

Console.WriteLine($"{formato}"); Console.WriteLine($"{val}");

Example to use the code:

CPFCNPJ.Main main = new CPFCNPJ.Main();

var formato = main.FormatCPFCNPJ("09009909000", CPFCNPJ.Enum.TypeString.CPF);

var val = main.IsValidCPFCNPJ("109.029.092-00");

Console.WriteLine($"{formato}"); Console.WriteLine($"{val}");

Release Notes

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:

CPFCNPJ.Main main = new CPFCNPJ.Main();

           var formato = main.FormatCPFCNPJ("09009909000",  CPFCNPJ.Enum.TypeString.CPF);

           var val = main.IsValidCPFCNPJ("109.029.092-00");

           Console.WriteLine($"{formato}");
           Console.WriteLine($"{val}");

  • .NETCoreApp 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.3 71 3/22/2020
2.0.2 66 3/22/2020
2.0.1 69 3/22/2020
2.0.0 72 3/22/2020
1.0.1 113 3/7/2020