Ejemplo n.º 1
0
 static void FillMethods(IEnumerable array,
                         ValidationTypeEnumerations validationTypeEnumerations)
 {
     foreach (var enumValue in array)
     {
         var value = (ValidationTypes)enumValue;
         if (validationTypeEnumerations.ValidationTypes.HasFlag(value))
         {
             validationTypeEnumerations._validationFunc.Add(FuncMap[value]);
         }
     }
 }
Ejemplo n.º 2
0
 public static void ShowValidationMessageEnumeration(string value,
                                                     ValidationTypeEnumerations validationTypeEnumerations)
 {
     WriteLine(
         $"{"\"" + value + "\"",25} validate for ({validationTypeEnumerations.Validations()}) = {validationTypeEnumerations.Validate(value)}");
 }