BValidation

BValidation

Download : Here

BValidaton easy to user for validation so many validation to writer in in easy way. for example

// If you Write String Is null of white space this way
if (String.IsNullOrWhiteSpace(txtname.Text))
{
   throw new Exception("Please enter name");
}

Now to use BValidation This way first add reference select BValidation.dll

String name = txtname.Text.ToNullOrWhiteSpace("Please Enter Name.");

// If string is null of white space then throw new Exception("Please Enter Name.")
// Else txtname.Text Return

For Email Id validation
String email = txtEmailId.Text.ToEmail("Invalid Email Id");

For DateTime validation
DateTime birthDate = txtBDate.Text.ToDate("Invalid Birth Date.");

So Many Function IN BValidation Like

ToDate
ToInt32
ToInt64
ToDecimal
ToFloat
ToDouble
ToEmail
ToNullOrWhiteSpace
ToNullOrEmptyString
ToCompareString
ToCompareNumber

Math Function

Add
Subtract
MultiplyTo
Max
Min
DivRem
Abs
Acos
Asin
Atan
Cos
Cosh
Log10
Sign
Sin
Sinh
Sqrt
Tan
Tanh
Truncate

Download : Here
BValidation BValidation Reviewed by Bhaumik Patel on 6:38 AM Rating: 5