KzIdentifiers 1.0.0

dotnet add package KzIdentifiers --version 1.0.0
                    
NuGet\Install-Package KzIdentifiers -Version 1.0.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="KzIdentifiers" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KzIdentifiers" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="KzIdentifiers" />
                    
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 KzIdentifiers --version 1.0.0
                    
#r "nuget: KzIdentifiers, 1.0.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.
#addin nuget:?package=KzIdentifiers&version=1.0.0
                    
Install KzIdentifiers as a Cake Addin
#tool nuget:?package=KzIdentifiers&version=1.0.0
                    
Install KzIdentifiers as a Cake Tool

KzIdentifiers Documentation

Overview

KzIdentifiers is a .NET library for parsing and validating Kazakhstan Individual Identification Numbers (IIN).


Methods

ValidateIin

Validates the provided IIN.

public static bool ValidateIin(string iin)
Parameters
  • iin (string): The Individual Identification Number to validate.
Returns
  • true if the IIN is valid.
  • false if the IIN is invalid.

ParseIin

Parses detailed information from the provided IIN.

public static IinInfo ParseIin(string iin)
Parameters
  • iin (string): The Individual Identification Number to parse.
Returns
  • IinInfo object containing parsed data from the IIN.

Class: IinInfo

Represents detailed information parsed from an IIN.

Properties

  • IsValid (bool): Indicates if the parsed IIN is valid.
  • Citizenship (enum): Citizenship status derived from the IIN.
  • BirthDate (DateTime?): The birth date extracted from the IIN. Nullable if extraction fails.
  • Gender (enum): The gender information derived from the IIN.

Usage Example

bool isValid = KzIdentifier.ValidateIin("990101350123");
// isValid == true

IinInfo info = KzIdentifier.ParseIin("990101350123");
// info.IsValid == true
// info.Citizenship, info.BirthDate, info.Gender contain detailed parsed data
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • 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.0 102 3/30/2025