XValid 1.0.0.2308
dotnet add package XValid --version 1.0.0.2308
NuGet\Install-Package XValid -Version 1.0.0.2308
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="XValid" Version="1.0.0.2308" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XValid --version 1.0.0.2308
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: XValid, 1.0.0.2308"
#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.
// Install XValid as a Cake Addin #addin nuget:?package=XValid&version=1.0.0.2308 // Install XValid as a Cake Tool #tool nuget:?package=XValid&version=1.0.0.2308
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
XValid - A Simple Validator Library
A simple validator library for various things, such as coordinates, credit cards, domain names, emails, IBANs, IP addresses, ISBNs, and more.
View documentation » · Report Bug · Request Feature
Features
- Validate coordinates.
- Validate credit card numbers.
- Validate domain names.
- Validate email addresses.
- Validate IBANs.
- Validate IP addresses.
- Validate ISBNs.
- More features are planned for future releases.
How to Use
- Install XValid via NuGet using the following command:
Install-Package XValid
or
dotnet add package XValid
Import the
XValid
namespace in your C# code.Start validating!
Coordinate Validation
using XValid;
double latitude = 40.7128; // Example latitude
double longitude = -74.0060; // Example longitude
bool isValidCoordinate = CoordinateValidator.IsValidCoordinate(latitude, longitude);
Credit Card Validation
using XValid;
string creditCardNumber = "4111 1111 1111 1111"; // Example card number (Visa)
bool isValidCreditCard = CreditCardValidator.IsValidCreditCardNumber(creditCardNumber);
Domain Name Validation
using XValid;
string domainName = "example.com";
bool isValidDomainName = DomainNameValidator.IsValid(domainName);
Email Validation
using XValid;
string email = "user@example.com";
bool isValidEmail = EmailValidator.IsValidEmail(email);
IBAN Validation
using XValid;
string iban = "DE89370400440532013000"; // Example IBAN (Germany)
bool isValidIBAN = IBANValidator.IsValidIBAN(iban);
IP Address Validation
using XValid;
string ipAddress = "192.0.2.1"; // Example IP address
bool isValidIPAddress = IPAddressValidator.IsValidIPAddress(ipAddress);
ISBN Validation
using XValid;
string isbn = "978-3-16-148410-0";
bool isValidISBN = ISBNValidator.IsValidISBN(isbn);
Contribution Guidelines
To contribute to XValid, follow these steps:
- Ensure you have the following tools installed:
- Visual Studio 2022 v17.0 or higher
- .NET 6.0 SDK
- Git
- .NET 6
- Fork the XValid repository and clone it to your local machine.
- Make your changes or add new features.
- Write tests to ensure the changes are functioning as expected.
- Submit a pull request to the main repository.
For more detailed guidelines, check out the contribution guidelines.
License
This project is under the MIT License.
Product | Versions 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. |
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 |
---|---|---|
1.0.0.2308 | 883 | 7/28/2023 |