SigmaValidation 1.0.3

Data validation for phone number and email

There is a newer version of this package available.
See the version list below for details.
Install-Package SigmaValidation -Version 1.0.3
dotnet add package SigmaValidation --version 1.0.3
<PackageReference Include="SigmaValidation" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SigmaValidation --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SigmaValidation

Validating Data

OperationResult<T>

  • Result: Dynamic type data (bool, int, object)
  • Message: String value denoting success and failure of request or operation
  • Exception: Exception is set if there is any exception occured during operation

Methods

  • IsPhoneNumber:
    • Check whether phone number is valid or not.
    • Result is true for valid phone number
    • Result is false for invalid phone number and message is set in error message, if exception has occured while checking then Exception is set
  • IsPhoneNumber(string code):
    • Check whether phone number is valid or not for provided country.
    • Support country currently available; NP (Nepal), US (United States) and DK (Denmark)
    • Result is true for valid phone number
    • Result is false for invalid phone number and message is set in error message, if exception has occured while checking then Exception is set
  • IsEmail:
    • Check whether the email is valid or not.
    • Operation resut is true for vaid email
    • False if email address is not valid. Message is set and if exception occured exception is set

SigmaValidation

Validating Data

OperationResult<T>

  • Result: Dynamic type data (bool, int, object)
  • Message: String value denoting success and failure of request or operation
  • Exception: Exception is set if there is any exception occured during operation

Methods

  • IsPhoneNumber:
    • Check whether phone number is valid or not.
    • Result is true for valid phone number
    • Result is false for invalid phone number and message is set in error message, if exception has occured while checking then Exception is set
  • IsPhoneNumber(string code):
    • Check whether phone number is valid or not for provided country.
    • Support country currently available; NP (Nepal), US (United States) and DK (Denmark)
    • Result is true for valid phone number
    • Result is false for invalid phone number and message is set in error message, if exception has occured while checking then Exception is set
  • IsEmail:
    • Check whether the email is valid or not.
    • Operation resut is true for vaid email
    • False if email address is not valid. Message is set and if exception occured exception is set

Release Notes

Phone number validation for countries; Nepal, United States and Denmark

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.4 340 5/14/2019
1.0.3 111 5/6/2019
1.0.2.1 170 4/25/2019
1.0.1.2 237 10/8/2018
1.0.1.1 233 9/25/2018
1.0.1 301 9/24/2018