CPFCNPJ 2.0.5

.NET Core 3.1
Install-Package CPFCNPJ -Version 2.0.5
dotnet add package CPFCNPJ --version 2.0.5
<PackageReference Include="CPFCNPJ" Version="2.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CPFCNPJ --version 2.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CPFCNPJ, 2.0.5"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CPFCNPJ as a Cake Addin
#addin nuget:?package=CPFCNPJ&version=2.0.5

// Install CPFCNPJ as a Cake Tool
#tool nuget:?package=CPFCNPJ&version=2.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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);

Any question let me know (https://www.mauriciojunior.net)

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.5 507 11/7/2021
2.0.4 210 11/7/2021
2.0.3 656 3/22/2020
2.0.2 297 3/22/2020
2.0.1 315 3/22/2020
2.0.0 304 3/22/2020
1.0.1 353 3/7/2020

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);