Esempio n. 1
0
 internal static void Validate(Fielddto toValidate, IList validated)
 {
     if (validated.Contains(toValidate))
     {
         return;
     }
     validated.Add(toValidate);
     if (toValidate.Id == null)
     {
         throw new ArgumentException("Id is required");
     }
     if (toValidate.Name == null)
     {
         throw new ArgumentException("Name is required");
     }
     if (toValidate.FieldType == null)
     {
         throw new ArgumentException("FieldType is required");
     }
 }
Esempio n. 2
0
 public static void Validate(Fielddto toValidate)
 {
     Validate(toValidate, new ArrayList());
 }