internal static void Validate(ImportClienteEventPayload toValidate, IList validated) { if (validated.Contains(toValidate)) { return; } validated.Add(toValidate); if (toValidate.Eventpl == null) { throw new ArgumentException("Eventpl is required"); } toValidate.Eventpl.Validate(validated); }
public static void Validate(ImportClienteEventPayload toValidate) { Validate(toValidate, new ArrayList()); }