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