ValidaCNH 1.0.5
dotnet add package ValidaCNH --version 1.0.5
NuGet\Install-Package ValidaCNH -Version 1.0.5
<PackageReference Include="ValidaCNH" Version="1.0.5" />
paket add ValidaCNH --version 1.0.5
#r "nuget: ValidaCNH, 1.0.5"
// Install ValidaCNH as a Cake Addin #addin nuget:?package=ValidaCNH&version=1.0.5 // Install ValidaCNH as a Cake Tool #tool nuget:?package=ValidaCNH&version=1.0.5
ValidaCNH
Sobre
Este package permite a validação numérica da Carteira Nacional de Habilitação - CNH. Este projeto teve como ponta pé inicial um tópico de um fórum de discussão que pode ser acessado neste link
Implementação
O uso do componente é bem simples. Use o snippet abaixo como segue:
var numeroCNH = "01234567890";
var valido = CNH.Validar(numeroCNH);
Os testes foram concluídos com sucesso. A massa de dados dos testes foi obtida neste link
O número da CNH
O número da CNH tem seu formato regulamentado pela resolução número 598 do CONSELHO NACIONAL DE TRÂNSITO - CONTRAN. Este formato foi definido com base na necessidade de adequação do modelo único da CNH às exigências das técnicas de segurança documental.
Mais informações podem ser obtidas no documento da resolução neste link
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.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 |
---|---|---|
1.0.5 | 110 | 7/13/2024 |