IraniValidator.core 6.0.0

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

جعبه ابزار اعتبار سنجی

Build Status

جعبه ابزاری برای اعتبار سنجی برخی مقادیر مربوط به کشور ایران.

اعتبار سنجی

  • اعتبار سنجی شماره موبایل به تفکیک نام اپراتور(همراه اول - ایرانسل - رایتل)
  • اعتبار سنجی کد ملی افراد
  • اعتبار سنجی شناسه ملی شرکت ها
  • اعتبار سنجی شماره کارت های بانکی
  • اعتبار سنجی مقادیر شبکه و اینترنت(ایمیل - آی پی ها - آدرس های اینترنتی)

به زودی قابلیت های جدید افزوده خواهد شد.

نصب

نصب این بسته به راحتی از طریق NuGet امکان پذیر است. برای نصب از دستور زیر استفاده کنید:

Install-Package IraniValidator.core -Version 1.2.0 

راهنمای استفاده

این بسته شامل تعدادی اکستنشن متد برای اعتبار سنجی رشته ها است. نمونه کد:

            string test = "09191234567";

            var isIraniMobile = test.IsValidMobile(); //return true

            var isIrancell = test.IsValidMobile(OpratorType.IranCell); //return false


            string test1 = "3962619771";

            var isNationalId = test1.IsValidPersonNationalId(); //return true

            var isCompanyNationalId = test1.IsValidCompanyNationalId(); //return false

            var isCreditNumber = test1.IsValidCreditCard(); //return false


            string test2 = "test@gmail.com";

            var isEmail = test2.IsValidEmailAddress();  //return 


            //and so on...
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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.  net9.0 was computed.  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.  net10.0 was computed.  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.
  • net6.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
6.0.0 1,593 8/26/2022
1.3.0 727 12/25/2019
1.2.0 801 4/5/2019
1.0.0 746 4/5/2019

ابزار اعتبار سنجی رشته هایی مانند شماره موبایل شماره ملی شماره کارت بانکی و ...