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