internal static void Validate(ExportItemInput 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(ExportItemInput toValidate) { Validate(toValidate, new ArrayList()); }