TCIDChecker_NET 2.1.0
dotnet add package TCIDChecker_NET --version 2.1.0
NuGet\Install-Package TCIDChecker_NET -Version 2.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TCIDChecker_NET" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TCIDChecker_NET" Version="2.1.0" />
<PackageReference Include="TCIDChecker_NET" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TCIDChecker_NET --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TCIDChecker_NET, 2.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TCIDChecker_NET@2.1.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TCIDChecker_NET&version=2.1.0
#tool nuget:?package=TCIDChecker_NET&version=2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TC ID Checker for .NET
Determines whether a given Turkish ID number is valid according to official checksum rules.
Target Framework
- .NET 10 (
net10.0)
Features
- Determines that given TC ID is correct or wrong based on rules.
- If correct, you can use online validation functions.
- Generates valid random TC ID.
How It Works
- The ones digit of the sum of the first 10 digits gives the 11th digit.
- The ones digit of 7 times the sum of the 1st, 3rd, 5th, 7th and 9th digits plus 9 times the sum of the 2nd, 4th, 6th and 8th digits gives the 10th digit.
- The ones digit of 8 times the sum of the 1st, 3rd, 5th, 7th and 9th digits gives the 11th digit.
Usage
using TCIDCheckerLibrary;
using ColorLoggerLibrary;
var checker = new TCIDChecker();
checker.controlID("08392566548", true, true, LogLevel.info);
checker.controlID("02345678982", false, true, LogLevel.verbose);
checker.generateID(false, false, LogLevel.info);
checker.generateID(false, true, LogLevel.info);
checker.generateID(true, true, LogLevel.info);
checker.generateID(true, false, LogLevel.info);
await checker.validateIDAsync("11111111111", "ali", "veli", 1900, false, LogLevel.verbose);
await checker.validateForeignIDAsync("11111111111", "jack", "delay", 1, 1, 1900, true, LogLevel.debug);
await checker.validatePersonAndCardAsync("11111111111", "ali", "veli", false, 1, false, 1, false, 1900, "a15", 796544, "y02n45764", true, LogLevel.info);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- ColorLogger_NET (>= 1.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
* Updated target framework to .NET 10.
* Upgraded ColorLogger dependency.
* Modernized extension internals while preserving backward compatibility.