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" />
                    
Directory.Packages.props
<PackageReference Include="TCIDChecker_NET" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=TCIDChecker_NET&version=2.1.0
                    
Install as a Cake Tool

TC ID Checker for .NET

NuGet Version NuGet Downloads License

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 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.

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.1.0 87 2/14/2026
2.0.8 669 2/21/2022
2.0.7 575 2/20/2022
2.0.6 597 2/20/2022
2.0.5 588 2/13/2022
2.0.4 575 2/12/2022

* Updated target framework to .NET 10.
     * Upgraded ColorLogger dependency.
     * Modernized extension internals while preserving backward compatibility.