コード例 #1
0
 protected ValidationResult ValidationSucces()
 {
     CurrentResult = new ValidationResult(true);
     return(CurrentResult);
 }
コード例 #2
0
 protected ValidationResult ValidationFailed(string message)
 {
     CurrentResult = new ValidationResult(false, message);
     return(CurrentResult);
 }
コード例 #3
0
 protected ValidationResult CannotBeNull()
 {
     CurrentResult = new ValidationResult(false, "Value cannot be null or empty");
     return(CurrentResult);
 }