public override bool IsValid(object value) { ValidationMethods valMethods = new ValidationMethods(); if (value == null) { return true; } string stringICQ = (string)value; if (valMethods.IsNumeric(stringICQ) && stringICQ.Length > 6 && stringICQ.Length < 10) { return true; } else { return false; } }
public override bool IsValid(object value) { ValidationMethods valMethods = new ValidationMethods(); if (value == null) { return(true); } string stringICQ = (string)value; if (valMethods.IsNumeric(stringICQ) && stringICQ.Length > 8 && stringICQ.Length < 16) { return(true); } else { return(false); } }